[PATCH] sys_mincore: s/max/min/
fix a typo, sys_mincore() needs min(). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Linus "I'm a moron" Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2bb71b5a44
commit
825020c386
|
@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
|
|||
* the temporary buffer size.
|
||||
*/
|
||||
down_read(¤t->mm->mmap_sem);
|
||||
retval = do_mincore(start, tmp, max(pages, PAGE_SIZE));
|
||||
retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
|
||||
up_read(¤t->mm->mmap_sem);
|
||||
|
||||
if (retval <= 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user