diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-01-05 14:46:04 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-05 14:48:51 +0300 |
commit | d8018361b58bb7b9a2a657104e54c33c2ef1439d (patch) | |
tree | 73f32b37c08aec538cace44cb59867e6f5a04171 /sound/soc/intel/skylake/skl-topology.c | |
parent | fb203adc28a3717c252bde0f068b3ebd2206994b (diff) | |
download | linux-d8018361b58bb7b9a2a657104e54c33c2ef1439d.tar.xz |
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.c | 2 |
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; } |