Searched hist:cd2579d7aa7bfc966cc271a88e77f8cfc3b0b7ba (Results 1 – 1 of 1) sorted by relevance
/linux/mm/ |
H A D | mmap.c | diff cd2579d7aa7bfc966cc271a88e77f8cfc3b0b7ba Tue Nov 14 14:43:38 CET 2006 Hugh Dickins <hugh@veritas.com> [PATCH] hugetlb: fix error return for brk() entering a hugepage region
Commit cb07c9a1864a8eac9f3123e428100d5b2a16e65a causes the wrong return value. is_hugepage_only_range() is a boolean, so we should return -EINVAL rather than 1.
Also - we can use "mm" instead of looking up "current->mm" again.
Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|