From: Hugh Dickins Date: Tue, 14 Nov 2006 13:43:38 +0000 (+0000) Subject: [PATCH] hugetlb: fix error return for brk() entering a hugepage region X-Git-Tag: v2.6.19-rc6~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd2579d7aa7bfc966cc271a88e77f8cfc3b0b7ba;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed