From: Paolo 'Blaisorblade' Giarrusso Date: Thu, 29 Dec 2005 16:39:57 +0000 (+0100) Subject: [PATCH] uml: hostfs - fix possible PAGE_CACHE_SHIFT overflows X-Git-Tag: v2.6.15~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a;p=pandora-kernel.git [PATCH] uml: hostfs - fix possible PAGE_CACHE_SHIFT overflows Prevent page->index << PAGE_CACHE_SHIFT from overflowing. There is a casting there, but was added without care, so it's at the wrong place. Note the extra parens around the shift - "+" is higher precedence than "<<", leading to a GCC warning which saved all us. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed