kernel_optimize_test/drivers/hwtracing/intel_th
Alexander Shishkin e609ccef52 intel_th: Don't leak module refcount on failure to activate
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>
Cc: stable@vger.kernel.org # v4.8+
2017-03-15 14:54:57 +02:00
..
core.c intel_th: Don't leak module refcount on failure to activate 2017-03-15 14:54:57 +02:00
debug.c
debug.h
gth.c intel_th: gth: Handle host mode correctly 2016-11-18 17:11:35 +02:00
gth.h intel_th: Update scratchpad bits according to enabled output activity 2016-02-20 14:09:14 -08:00
intel_th.h intel_th: Support Host Debugger mode of operation 2016-11-18 17:07:54 +02:00
Kconfig intel_th: Depend on HAS_IOMEM 2016-02-20 14:09:14 -08:00
Makefile intel_th: Add PTI output driver 2015-10-04 20:28:58 +01:00
msu.c mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf 2017-02-24 17:46:54 -08:00
msu.h intel_th: Add Memory Storage Unit driver 2015-10-04 20:28:58 +01:00
pci.c intel_th: pci: Add Kaby Lake PCH-H support 2016-07-14 13:16:56 +03:00
pti.c intel_th: pti: Create sysfs attributes using core driver's facility 2016-04-08 16:11:57 +03:00
pti.h intel_th: Add PTI output driver 2015-10-04 20:28:58 +01:00
sth.c intel_th: Mark sth_stm_packet() with notrace 2016-11-22 17:47:56 -05:00
sth.h intel_th: Add Software Trace Hub driver 2015-10-04 20:28:58 +01:00