diff options
Diffstat (limited to 'arch/arm/include/asm/uaccess.h')
-rw-r--r-- | arch/arm/include/asm/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h index 75d95799b6e6..fd42da46828d 100644 --- a/arch/arm/include/asm/uaccess.h +++ b/arch/arm/include/asm/uaccess.h | |||
@@ -224,7 +224,7 @@ static inline void set_fs(mm_segment_t fs) | |||
224 | #define access_ok(type,addr,size) (__range_ok(addr,size) == 0) | 224 | #define access_ok(type,addr,size) (__range_ok(addr,size) == 0) |
225 | 225 | ||
226 | #define user_addr_max() \ | 226 | #define user_addr_max() \ |
227 | (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL) | 227 | (segment_eq(get_fs(), KERNEL_DS) ? ~0UL : get_fs()) |
228 | 228 | ||
229 | /* | 229 | /* |
230 | * The "__xxx" versions of the user access functions do not verify the | 230 | * The "__xxx" versions of the user access functions do not verify the |