summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/uaccess.h')
-rw-r--r--arch/sparc/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/uaccess.h b/arch/sparc/include/asm/uaccess.h
index bd56c28..9e068bf 100644
--- a/arch/sparc/include/asm/uaccess.h
+++ b/arch/sparc/include/asm/uaccess.h
@@ -7,7 +7,7 @@
#endif
#define user_addr_max() \
- (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
+ (uaccess_kernel() ? ~0UL : TASK_SIZE)
long strncpy_from_user(char *dest, const char __user *src, long count);
OpenPOWER on IntegriCloud