diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:07:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:07:07 -0400 |
commit | 2991be725260d6fec11691a6138b9d71de949956 (patch) | |
tree | 407241b126eed902bacba4e02043930c6ce087b4 /include/asm-sh/processor.h | |
parent | 0f08f338083cc1d68788ccbccc44bd0502fc57ae (diff) |
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 <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/processor.h')
-rw-r--r-- | include/asm-sh/processor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index e99aff706cf7..a22732007dd4 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h | |||
@@ -149,6 +149,10 @@ struct thread_struct { | |||
149 | union sh_fpu_union fpu; | 149 | union sh_fpu_union fpu; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | typedef struct { | ||
153 | unsigned long seg; | ||
154 | } mm_segment_t; | ||
155 | |||
152 | /* Count of active tasks with UBC settings */ | 156 | /* Count of active tasks with UBC settings */ |
153 | extern int ubc_usercnt; | 157 | extern int ubc_usercnt; |
154 | 158 | ||