diff mbox

[4/6] ASoC: Intel: Skylake: Release FW ctx in cleanup

Message ID 1483330807-9518-5-git-send-email-jeeja.kp@intel.com (mailing list archive)
State Accepted
Commit bc65a326c579e93a5c2120a65ede72f11369ee5a
Headers show

Commit Message

Jeeja KP Jan. 2, 2017, 4:20 a.m. UTC
From: Jeeja KP <jeeja.kp@intel.com>

Saved firmware ctx was not never released, so release Firmware
ctx in cleanup routine.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
---
 sound/soc/intel/skylake/skl-sst.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
index 8fc3178..b30bd38 100644
--- a/sound/soc/intel/skylake/skl-sst.c
+++ b/sound/soc/intel/skylake/skl-sst.c
@@ -515,6 +515,9 @@  EXPORT_SYMBOL_GPL(skl_sst_init_fw);
 
 void skl_sst_dsp_cleanup(struct device *dev, struct skl_sst *ctx)
 {
+
+	if (ctx->dsp->fw)
+		release_firmware(ctx->dsp->fw);
 	skl_clear_module_table(ctx->dsp);
 	skl_freeup_uuid_list(ctx);
 	skl_ipc_free(&ctx->ipc);