Skip to content

Commit

Permalink
ASoC: Intel: Skylake: Release FW ctx in cleanup
Browse files Browse the repository at this point in the history
Saved firmware ctx was not never released, so release Firmware
ctx in cleanup routine.

Signed-off-by: Jeeja KP <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
kpjeeja authored and broonie committed Jan 6, 2017
1 parent 60448b0 commit bc65a32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/intel/skylake/skl-sst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bc65a32

Please sign in to comment.