android_kernel_samsung_a7y1.../drivers/hwtracing/stm
Ding Xiang 4b07cd023f stm class: Fix a double free of stm_source_device
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: 7bd1d4093c2fa ("stm class: Introduce an abstraction for System Trace Module devices")
Link: https://lore.kernel.org/linux-arm-kernel/1563354988-23826-1-git-send-email-dingxiang@cmss.chinamobile.com/
Cc: stable@vger.kernel.org # v4.4+
Link: https://lore.kernel.org/r/20190821074955.3925-2-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 21:33:50 +02:00
..
console.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c stm class: Fix a double free of stm_source_device 2020-04-06 21:33:50 +02:00
dummy_stm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig stm class: Hide STM-specific options if STM is disabled 2020-04-06 13:03:45 +02:00
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
policy.c stm class: Support devices with multiple instances 2020-04-06 12:50:50 +02:00
stm.h stm class: Guard output assignment against concurrency 2020-04-06 12:50:54 +02:00