]> 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)
commit68482a5aac460f3b6d3031f14b787e9af18a1b60
tree79e3d3de90ab01d241e775e1ec9d54c1ceb33b0e
parent177f70f8427581f743c2d3792c4475648a928b77
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