提交 825020c3 编写于 作者: O Oleg Nesterov 提交者: Linus Torvalds

[PATCH] sys_mincore: s/max/min/

fix a typo, sys_mincore() needs min().
Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NLinus "I'm a moron" Torvalds <torvalds@osdl.org>
上级 2bb71b5a
......@@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
* the temporary buffer size.
*/
down_read(&current->mm->mmap_sem);
retval = do_mincore(start, tmp, max(pages, PAGE_SIZE));
retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
up_read(&current->mm->mmap_sem);
if (retval <= 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册