summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-08-15 05:10:26 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-08-15 05:10:26 +0200
commit20445cc9159089d9d6b88d7864578efb10eb6590 (patch)
treefbbb27fd8baa82c77ebc4e020e8ee9ddb57e3ae2 /mm/mempolicy.c
parent[PATCH] hostap: Use ieee80211 WLAN_FC_GET_{TYPE,STYPE} (diff)
parentMerge /spare/repo/linux-2.6/ (diff)
downloadlinux-20445cc9159089d9d6b88d7864578efb10eb6590.tar.xz
linux-20445cc9159089d9d6b88d7864578efb10eb6590.zip
/spare/repo/netdev-2.6 branch 'ieee80211'
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 1694845526be..b4eababc8198 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -443,7 +443,7 @@ asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
struct mempolicy *new;
DECLARE_BITMAP(nodes, MAX_NUMNODES);
- if (mode > MPOL_MAX)
+ if (mode < 0 || mode > MPOL_MAX)
return -EINVAL;
err = get_nodes(nodes, nmask, maxnode, mode);
if (err)