sparc64: Fix overshoot in nid_range().
If 'start' does not begin on a page boundary, we can overshoot past 'end'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -796,6 +796,9 @@ static unsigned long nid_range(unsigned long start, unsigned long end,
|
||||
start += PAGE_SIZE;
|
||||
}
|
||||
|
||||
if (start > end)
|
||||
start = end;
|
||||
|
||||
return start;
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user