summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/haswell
diff options
context:
space:
mode:
authorJin Yao <yao.jin@linux.intel.com>2015-04-13 08:20:54 +0200
committerMark Brown <broonie@kernel.org>2015-04-27 16:43:43 +0200
commit3228723b0ce0ef6ef6d3f59f282f061430691ab9 (patch)
tree68a6d94bcae7594c146a5f176819865600624a22 /sound/soc/intel/haswell
parentLinux 4.1-rc1 (diff)
downloadlinux-3228723b0ce0ef6ef6d3f59f282f061430691ab9.tar.xz
linux-3228723b0ce0ef6ef6d3f59f282f061430691ab9.zip
ASoC: Intel: Remove invalid kfree of devm allocated data
kbuild robot reports following warning: "sound/soc/intel/haswell/sst-haswell-ipc.c:2204:1-6: WARNING: invalid free of devm_ allocated data" As julia explains to me, the memory allocated with devm_kalloc is freed automatically on failure of a probe function. So this kfree should be removed otherwise the double free will be got in error handler path. Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/haswell')
-rw-r--r--sound/soc/intel/haswell/sst-haswell-ipc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c
index 344a1e9bbce5..324eceb07b25 100644
--- a/sound/soc/intel/haswell/sst-haswell-ipc.c
+++ b/sound/soc/intel/haswell/sst-haswell-ipc.c
@@ -2201,7 +2201,6 @@ dma_err:
dsp_new_err:
sst_ipc_fini(ipc);
ipc_init_err:
- kfree(hsw);
return ret;
}
EXPORT_SYMBOL_GPL(sst_hsw_dsp_init);