mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
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>
This commit is contained in:
parent
95536d8c29
commit
76222d6dd2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user