From e49e06c9060ab6914f275a59986162d758d51a29 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 20 Feb 2006 17:18:44 -0800 Subject: [PATCH] Fix units in mbind patch --- queue/sys_mbind-sanity-checking.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3