cad1d3bfdd
commit 961b6ffe0e2c403b09a8efe4a2e986b3c415391a upstream.
In the error path of stm_source_register_device(), the kfree is
unnecessary, as the put_device() before it ends up calling
stm_source_device_release() to free stm_source_device, leading to
a double free at the outer kfree() call. Remove it.
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes:
|
||
---|---|---|
.. | ||
console.c | ||
core.c | ||
dummy_stm.c | ||
ftrace.c | ||
heartbeat.c | ||
Kconfig | ||
Makefile | ||
policy.c | ||
stm.h |