]> git.hungrycats.org Git - linux/commit
[PATCH] Fix get_nodes() mask miscalculation
authorBrent Casavant <bcasavan@sgi.com>
Tue, 24 Aug 2004 04:30:27 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:30:27 +0000 (21:30 -0700)
commit70b9eca4bb8106e887498065740d0e8ffc79a352
tree1e10f6f451fd757fb9c44c68b2b8a81b9f582853
parentc41c607ce5e7de56897002dfa376f8451d797d19
[PATCH] Fix get_nodes() mask miscalculation

It appears there is a nodemask miscalculation in the get_nodes() function
in mm/mempolicy.c.  This bug has two effects:

1. It is impossible to specify a length 1 nodemask.
2. It is impossible to specify a nodemask containing the last node.

The following patch has been confirmed to solve both problems.

Signed-off-by: Brent Casavant <bcasavan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c