linux/drivers/hwtracing/stm
Chunyan Zhang 7b3bb0e753 stm class: Fix an off-by-one in master array allocation
Since both sw_start and sw_end are master indices, the size of array
that holds them is sw_end - sw_start + 1, which the current code gets
wrong, allocating one item less than required.

This patch corrects the allocation size, avoiding potential slab
corruption.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
[alexander.shishkin@linux.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-07 22:43:17 -08:00
..
console.c
core.c stm class: Fix an off-by-one in master array allocation 2016-02-07 22:43:17 -08:00
dummy_stm.c
Kconfig stm class: Select CONFIG_SRCU 2016-02-07 22:43:17 -08:00
Makefile
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