Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09a6b4a authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

ASoC: Intel: sst_byt: remove kfree for memory allocated with devm_kzalloc



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

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ac98b4c0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}