linux-stable/drivers/hwtracing/stm
Tingwei Zhang e7db486a33 stm class: Fix channel free in stm output free path
commit ee496da4c3 upstream.

Number of free masters is not set correctly in stm
free path. Fix this by properly adding the number
of output channels before setting them to 0 in
stm_output_disclaim().

Currently it is equivalent to doing nothing since
master->nr_free is incremented by 0.

Fixes: 7bd1d4093c ("stm class: Introduce an abstraction for System Trace Module devices")
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Cc: stable@vger.kernel.org # v4.4
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-25 18:25:18 +02:00
..
console.c
core.c stm class: Fix channel free in stm output free path 2019-05-25 18:25:18 +02:00
dummy_stm.c stm dummy: Mark dummy_stm_packet() with notrace 2016-11-22 17:48:00 -05:00
ftrace.c stm class: ftrace: Add ftrace-export-over-stm driver 2016-11-22 17:47:48 -05:00
heartbeat.c stm class: stm_heartbeat: Make nr_devs parameter read-only 2016-04-08 16:11:51 +03:00
Kconfig stm class: ftrace: Add ftrace-export-over-stm driver 2016-11-22 17:47:48 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
policy.c stm class: Remove unnecessary pointer increment 2016-04-08 16:11:54 +03:00
stm.h stm class: Guard output assignment against concurrency 2016-02-20 14:09:14 -08:00