linux/drivers/hwtracing
Alexander Shishkin 3076066bb5 intel_th: Don't leak module refcount on failure to activate
commit e609ccef52 upstream.

Output 'activation' may fail for the reasons of the output driver,
for example, if msc's buffer is not allocated. We forget, however,
to drop the module reference in this case. So each attempt at
activation in this case leaks a reference, preventing the module
from ever unloading.

This patch adds the missing module_put() in the activation error
path.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-03-30 09:41:27 +02:00
..
coresight coresight: STM: Balance enable/disable 2017-03-12 06:41:42 +01:00
intel_th intel_th: Don't leak module refcount on failure to activate 2017-03-30 09:41:27 +02:00
stm stm class: Fix device leak in open error path 2017-01-09 08:32:21 +01:00