From: Masahiro Yamada Date: Tue, 20 Jan 2015 03:38:25 +0000 (+0100) Subject: ARM: 8292/1: mm: fix size rounding-down of arm_add_memory() function X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~243^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909ba297beb50981a9d12364688d3c5f3084c6eb;p=pandora-kernel.git 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 Acked-by: Geert Uytterhoeven Acked-by: Ard Biesheuvel Signed-off-by: Russell King --- Reading git-diff-tree failed