aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2015-01-20 03:38:25 +0000
committerRussell King <[email protected]>2015-01-21 15:52:40 +0000
commit909ba297beb50981a9d12364688d3c5f3084c6eb (patch)
tree14080141f5359248a3f08b420dd8f56a666d61f0 /lib/string_helpers.c
parentARM: 8255/1: perf: Prevent wraparound during overflow (diff)
downloadkernel-909ba297beb50981a9d12364688d3c5f3084c6eb.tar.gz
kernel-909ba297beb50981a9d12364688d3c5f3084c6eb.zip
ARM: 8292/1: mm: fix size rounding-down of arm_add_memory() function
The current rounding of "size" is wrong: - If "start" is sufficiently near the next page boundary, "size" is decremented by more than enough and the last page is lost. - If "size" is sufficiently small, it is wrapped around and gets a bogus value. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions