|
@@ -1282,8 +1282,6 @@ static int get_nodes(nodemask_t *nodes, const unsigned long __user *nmask,
|
|
|
/* When the user specified more nodes than supported just check
|
|
|
if the non supported part is all zero. */
|
|
|
if (nlongs > BITS_TO_LONGS(MAX_NUMNODES)) {
|
|
|
- if (nlongs > PAGE_SIZE/sizeof(long))
|
|
|
- return -EINVAL;
|
|
|
for (k = BITS_TO_LONGS(MAX_NUMNODES); k < nlongs; k++) {
|
|
|
unsigned long t;
|
|
|
if (get_user(t, nmask + k))
|