From: Paul Mundt Date: Wed, 27 Sep 2006 08:07:07 +0000 (+0900) Subject: sh: Fixup __strnlen_user() behaviour. X-Git-Tag: v2.6.19-rc1~902^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2991be725260d6fec11691a6138b9d71de949956;p=pandora-kernel.git sh: Fixup __strnlen_user() behaviour. Drop TIF_USERSPACE and add addr_limit to the thread_info struct. Subsequently, use that for address checking in strnlen_user() to ward off bogus -EFAULTs. Make __strnlen_user() return 0 on exception, rather than -EFAULT. Signed-off-by: Paul Mundt --- Reading git-diff-tree failed