aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-01-05 17:16:04 +0530
committerMark Brown <broonie@kernel.org>2016-01-05 11:48:51 +0000
commitd8018361b58bb7b9a2a657104e54c33c2ef1439d (patch)
tree73f32b37c08aec538cace44cb59867e6f5a04171 /sound/soc/intel/skylake/skl.h
parentASoC: Intel: Skylake: Revert previous broken fix memory leak fix (diff)
downloadlinux-dev-d8018361b58bb7b9a2a657104e54c33c2ef1439d.tar.xz
linux-dev-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 '')
-rw-r--r--sound/soc/intel/skylake/skl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl.h b/sound/soc/intel/skylake/skl.h
index dd2e79ae45a8..a0709e344d44 100644
--- a/sound/soc/intel/skylake/skl.h
+++ b/sound/soc/intel/skylake/skl.h
@@ -68,6 +68,8 @@ struct skl {
struct skl_dsp_resource resource;
struct list_head ppl_list;
struct list_head dapm_path_list;
+
+ const struct firmware *tplg;
};
#define skl_to_ebus(s) (&(s)->ebus)