From: Mousumi Jana Date: Thu, 28 Apr 2016 13:15:26 +0000 (+0530) Subject: ASoC: Intel: Skylake: Fix memory leak during init instance X-Git-Tag: v4.9.8~1969^2~7^2~7^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76222d6dd2e64c895735ab271ecc8b0df568981d;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- 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; }