Commit 825020c3866e7312947e17a0caa9dd1a5622bafc
Committed by
Linus Torvalds
1 parent
2bb71b5a44
Exists in
master
and in
20 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
mm/mincore.c
... | ... | @@ -142,7 +142,7 @@ |
142 | 142 | * the temporary buffer size. |
143 | 143 | */ |
144 | 144 | down_read(¤t->mm->mmap_sem); |
145 | - retval = do_mincore(start, tmp, max(pages, PAGE_SIZE)); | |
145 | + retval = do_mincore(start, tmp, min(pages, PAGE_SIZE)); | |
146 | 146 | up_read(¤t->mm->mmap_sem); |
147 | 147 | |
148 | 148 | if (retval <= 0) |