Skip to content

Commit

Permalink
ASoC: Intel: sst_byt: remove kfree for memory allocated with devm_kza…
Browse files Browse the repository at this point in the history
…lloc

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Wei Yongjun authored and broonie committed Apr 17, 2015
1 parent ac98b4c commit d09a6b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/intel/baytrail/sst-baytrail-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata)
dsp_new_err:
sst_ipc_fini(ipc);
ipc_init_err:
kfree(byt);

return err;
}
Expand Down

0 comments on commit d09a6b4

Please sign in to comment.