android_kernel_oneplus_msm8998/drivers/hwtracing
Mathieu Poirier 3e2070abcc coresight: coresight_unregister() function cleanup
[ Upstream commit fae54158792aec705620bdc3938d342879204f0c ]

In its current form the code never frees csdev->refcnt allocated
in coresight_register().  There is also a problem with csdev->conns
that is freed before device_unregister() rather than in the device
release function.

This patch addresses both issues by moving kfree(csdev->conns) to
coresight_device_release() and freeing csdev->refcnt, also in
the same function.

Reported-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-03 06:23:21 +02:00
..
coresight coresight: coresight_unregister() function cleanup 2019-04-03 06:23:21 +02:00
intel_th intel_th: Don't reference unassigned outputs 2019-03-23 08:44:37 +01:00
stm stm class: Prevent division by zero 2019-03-23 08:44:34 +01:00