diff options
| -rw-r--r-- | arch/s390/include/asm/uaccess.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index 2d9ea11f919a..2b23885e81e9 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h | |||
| @@ -49,12 +49,13 @@ | |||
| 49 | 49 | ||
| 50 | #define segment_eq(a,b) ((a).ar4 == (b).ar4) | 50 | #define segment_eq(a,b) ((a).ar4 == (b).ar4) |
| 51 | 51 | ||
| 52 | #define __access_ok(addr, size) \ | ||
| 53 | ({ \ | ||
| 54 | __chk_user_ptr(addr); \ | ||
| 55 | 1; \ | ||
| 56 | }) | ||
| 52 | 57 | ||
| 53 | static inline int __access_ok(const void __user *addr, unsigned long size) | 58 | #define access_ok(type, addr, size) __access_ok(addr, size) |
| 54 | { | ||
| 55 | return 1; | ||
| 56 | } | ||
| 57 | #define access_ok(type,addr,size) __access_ok(addr,size) | ||
| 58 | 59 | ||
| 59 | /* | 60 | /* |
| 60 | * The exception table consists of pairs of addresses: the first is the | 61 | * The exception table consists of pairs of addresses: the first is the |
