From: Chris Wright Date: Tue, 21 Feb 2006 01:18:44 +0000 (-0800) Subject: Fix units in mbind patch X-Git-Tag: v2.6.15.5~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e49e06c9060ab6914f275a59986162d758d51a29;p=thirdparty%2Fkernel%2Fstable-queue.git Fix units in mbind patch --- diff --git a/queue/sys_mbind-sanity-checking.patch b/queue/sys_mbind-sanity-checking.patch index 9f9d4645bdb..c6ad544369c 100644 --- a/queue/sys_mbind-sanity-checking.patch +++ b/queue/sys_mbind-sanity-checking.patch @@ -8,6 +8,8 @@ get_nodes(). Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds +[chrisw: fix units, pointed out by Andi] +Cc: Andi Kleen --- mm/mempolicy.c | 2 ++ @@ -19,7 +21,7 @@ Signed-off-by: Linus Torvalds nodes_clear(*nodes); if (maxnode == 0 || !nmask) return 0; -+ if (maxnode > PAGE_SIZE) ++ if (maxnode > PAGE_SIZE*BITS_PER_BYTE) + return -EINVAL; nlongs = BITS_TO_LONGS(maxnode);