OpenCloudOS-Kernel/drivers/hwtracing/stm
Chunyan Zhang 73a3ed1903 stm class: Fix master deallocation in device unregistering
The device unregister path uses wrong master index range when it tries
to free the allocated masters, it should, as does the rest of the stm
class code, use real master IDs.

This patch fixes the device unregister path to use real master IDs to
avoid memory leaks after unloading the stm driver.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
[alexander.shishkin@intel.com: re-wrote the commit message]
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-20 14:09:14 -08:00
..
Kconfig stm class: Select CONFIG_SRCU 2016-02-07 22:43:17 -08:00
Makefile stm class: stm_console: Add kernel-console-over-stm driver 2015-10-04 20:28:58 +01:00
console.c stm class: stm_console: Add kernel-console-over-stm driver 2015-10-04 20:28:58 +01:00
core.c stm class: Fix master deallocation in device unregistering 2016-02-20 14:09:14 -08:00
dummy_stm.c
policy.c stm class: Fix locking in unbinding policy path 2016-02-07 22:43:17 -08:00
stm.h stm class: Fix link list locking 2016-02-07 22:43:17 -08:00