mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue