summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl-topology.c
diff options
context:
space:
mode:
authorVinod Koul2016-01-05 12:46:04 +0100
committerMark Brown2016-01-05 12:48:51 +0100
commitd8018361b58bb7b9a2a657104e54c33c2ef1439d (patch)
tree73f32b37c08aec538cace44cb59867e6f5a04171 /sound/soc/intel/skylake/skl-topology.c
parentASoC: Intel: Skylake: Revert previous broken fix memory leak fix (diff)
downloadkernel-qcow2-linux-d8018361b58bb7b9a2a657104e54c33c2ef1439d.tar.gz
kernel-qcow2-linux-d8018361b58bb7b9a2a657104e54c33c2ef1439d.tar.xz
kernel-qcow2-linux-d8018361b58bb7b9a2a657104e54c33c2ef1439d.zip
ASoC: Intel: Skylake: Fix the memory leak
This provide the fix for firmware memory by freeing the pointer in driver remove where it is safe to do so Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-topology.c')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index a7854c8fc523..ad4d0f82603e 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -1248,5 +1248,7 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
skl->resource.max_mcps = SKL_MAX_MCPS;
skl->resource.max_mem = SKL_FW_MAX_MEM;
+ skl->tplg = fw;
+
return 0;
}