android_kernel_motorola_sm6225/drivers/hwtracing
Tingwei Zhang 44bc4e8815 stm class: Fix channel free in stm output free path
commit ee496da4c3915de3232b5f5cd20e21ae3e46fe8d 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:23:24 +02:00
..
coresight coresight: cpu-debug: Support for CA73 CPUs 2019-04-20 09:16:04 +02:00
intel_th intel_th: pci: Add Comet Lake support 2019-05-10 17:54:10 +02:00
stm stm class: Fix channel free in stm output free path 2019-05-25 18:23:24 +02:00
Kconfig hwtracing: Add HW tracing support menu 2018-03-29 13:38:10 +03:00