mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 03:31:25 +00:00
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:
parent
6f63e781ea
commit
c918dcce92
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user