]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Remove invalid kfree of devm allocated data
authorJin Yao <yao.jin@linux.intel.com>
Mon, 13 Apr 2015 06:20:54 +0000 (14:20 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Apr 2015 16:08:08 +0000 (17:08 +0100)
commitf1934ca21161f5c3ed5655419a7ff32061bdefb7
treeb8073d2d8ee75cd768599e481d141105bbd720a0
parent51f659990362b0309ad86708b570d5f6d8adce9f
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>
sound/soc/intel/haswell/sst-haswell-ipc.c