From: Jerry Zhou Date: Wed, 11 Sep 2013 21:20:26 +0000 (-0700) Subject: mm: fix negative left shift count when PAGE_SHIFT > 20 X-Git-Tag: v3.12-rc1~52^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e833182a926ae5bc03204dbd00b0bb5539088b;p=pandora-kernel.git mm: fix negative left shift count when PAGE_SHIFT > 20 When PAGE_SHIFT > 20, the result of "20 - PAGE_SHIFT" is negative. The previous calculating here will generate an unexpected result. In addition, if PAGE_SIZE >= 1MB, The memory size of "numentries" was already integral multiple of 1MB. Signed-off-by: Jerry Zhou Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed