From: Dan Carpenter Date: Wed, 5 Mar 2014 11:11:57 +0000 (+0300) Subject: ASoC: Baytrail: fix error handling in sst_byt_dsp_init() X-Git-Tag: v3.15-rc1~36^2~1^2~4^2~11^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9202c377390f2708dece910f2e066a6308a38abc;p=pandora-kernel.git ASoC: Baytrail: fix error handling in sst_byt_dsp_init() Calling "kfree(byt)" is a double free because that was allocated with devm_kzalloc(). There were a couple places which leak "byt->msg". That memory is allocated in msg_empty_list_init(). Fixes: f7d01fd6754c ('ASoC: Intel: Add Intel Baytrail SST DSP IPC support') Signed-off-by: Dan Carpenter Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed