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)
commitc286b3f9600b2ddc573208792d947e1a251c6b15
tree79e3d3de90ab01d241e775e1ec9d54c1ceb33b0e
parent551f4bc86807637098786c78afb78418ada4aa1f
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