Hugh Dickins cd2579d7aa [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>
2006-11-14 15:15:01 -08:00
..
2006-09-26 08:48:44 -07:00
2006-01-11 18:42:13 -08:00
2006-09-26 08:48:45 -07:00
2006-09-26 08:48:58 -07:00
2005-04-16 15:20:36 -07:00
2006-11-03 12:27:56 -08:00
2006-09-26 08:48:45 -07:00
2006-09-29 09:18:23 -07:00