提交 c918dcce 编写于 作者: D David S. Miller

sparc64: Fix overshoot in nid_range().

If 'start' does not begin on a page boundary, we can overshoot
past 'end'.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6f63e781
...@@ -796,6 +796,9 @@ static unsigned long nid_range(unsigned long start, unsigned long end, ...@@ -796,6 +796,9 @@ static unsigned long nid_range(unsigned long start, unsigned long end,
start += PAGE_SIZE; start += PAGE_SIZE;
} }
if (start > end)
start = end;
return start; return start;
} }
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册