projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95536d8
)
ASoC: Intel: Skylake: Fix memory leak during init instance
author
Mousumi Jana
<mousumix.jana@intel.com>
Thu, 28 Apr 2016 13:15:26 +0000
(18:45 +0530)
committer
Mark Brown
<broonie@kernel.org>
Mon, 2 May 2016 11:02:17 +0000
(12:02 +0100)
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>
sound/soc/intel/skylake/skl-messages.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/skylake/skl-messages.c
b/sound/soc/intel/skylake/skl-messages.c
index e3d149c68bbf3e380caa0f912345382f7c9227e0..226db84ba20f0286e3b175850f4087b3e4902a59 100644
(file)
--- 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;
}