]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix memory leak in nhlt init
authorJeeja KP <jeeja.kp@intel.com>
Thu, 5 May 2016 05:49:19 +0000 (11:19 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 5 May 2016 15:46:54 +0000 (16:46 +0100)
commit6f83845532c199ac7dd98101e6bcf3f3932c29c4
tree79e3d3de90ab01d241e775e1ec9d54c1ceb33b0e
parente25b48ff539a3226a22d6f6b0f2aaed8bce4c3c1
ASoC: Intel: Skylake: Fix memory leak in nhlt init

During skl_nhlt_init(), acpi obj pointer is allocated and never
freed and remap address is not unmapped.

To fix this we should release the ACPI obj and also unmap the
nhlt address during cleanup of driver.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-nhlt.c
sound/soc/intel/skylake/skl.c
sound/soc/intel/skylake/skl.h