summaryrefslogtreecommitdiff
path: root/include/kvm
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.chunyan@linaro.org>2015-12-22 17:25:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 22:43:17 -0800
commit7b3bb0e75395b2f3b0f95d9ae50581e989ba5e4c (patch)
tree34567255c9cd134bb83ea16e196cebeb6bc6b9f1 /include/kvm
parentc74f7e8281add80bdfa0ad2998b8df287b13df73 (diff)
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>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions