summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMousumi Jana <mousumix.jana@intel.com>2016-04-28 18:45:26 +0530
committerMark Brown <broonie@kernel.org>2016-05-02 12:02:17 +0100
commit76222d6dd2e64c895735ab271ecc8b0df568981d (patch)
treeac40d721fe247ed9f57ad117698c24d322d7e200 /sound/soc
parent95536d8c29985167e745ff0d8c7cd7dcf4318e6b (diff)
downloadop-kernel-dev-76222d6dd2e64c895735ab271ecc8b0df568981d.zip
op-kernel-dev-76222d6dd2e64c895735ab271ecc8b0df568981d.tar.gz
ASoC: Intel: Skylake: Fix memory leak during init instance
param_data variable is allocated during set module format of init instance is not getting freed and hence can cause a memory leak. So free it up. Signed-off-by: Mousumi Jana <mousumix.jana@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/intel/skylake/skl-messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index e3d149c..226db84 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -864,7 +864,7 @@ int skl_init_module(struct skl_sst *ctx,
return ret;
}
mconfig->m_state = SKL_MODULE_INIT_DONE;
-
+ kfree(param_data);
return ret;
}
OpenPOWER on IntegriCloud