sh: Fixup __strnlen_user() behaviour.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 27 Sep 2006 08:07:07 +0000 (17:07 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 27 Sep 2006 08:07:07 +0000 (17:07 +0900)
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 <lethal@linux-sh.org>

No differences found