diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-06-17 11:41:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-17 20:28:30 +0100 |
commit | a94eaccefea1186947c5c5451fcae2245dd7e714 (patch) | |
tree | 0a00032002df1c8c68b042764116daa1be9dcb52 /.get_maintainer.ignore | |
parent | ed1220df6e666500ebf58c4f2fccc681941646fb (diff) | |
download | lwn-a94eaccefea1186947c5c5451fcae2245dd7e714.tar.gz lwn-a94eaccefea1186947c5c5451fcae2245dd7e714.zip |
ASoC: hdac_hda: fix memleak with regmap not freed on remove
kmemleak throws error reports on module load/unload tests, add
snd_hdac_regmap_exit() in .remove().
While we are at it, also fix the error handling flow in .probe() to
use snd_hdac_regmap_exit() if needed.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200617164144.17859-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions