diff options
author | Al Viro | 2017-03-21 02:08:07 +0100 |
---|---|---|
committer | Al Viro | 2017-03-28 22:43:25 +0200 |
commit | db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 (patch) | |
tree | 77eda1d247853a2d414e0047c620b3c72bb11a1a /arch/metag/include/asm | |
parent | add asm-generic/extable.h (diff) | |
download | kernel-qcow2-linux-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.tar.gz kernel-qcow2-linux-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.tar.xz kernel-qcow2-linux-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.zip |
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/metag/include/asm')
-rw-r--r-- | arch/metag/include/asm/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/metag/include/asm/uaccess.h b/arch/metag/include/asm/uaccess.h index 7fc5277ae71f..83de7554d2b3 100644 --- a/arch/metag/include/asm/uaccess.h +++ b/arch/metag/include/asm/uaccess.h @@ -24,7 +24,7 @@ #define segment_eq(a, b) ((a).seg == (b).seg) -#define __kernel_ok (segment_eq(get_fs(), KERNEL_DS)) +#define __kernel_ok (uaccess_kernel()) /* * Explicitly allow NULL pointers here. Parts of the kernel such * as readv/writev use access_ok to validate pointers, but want |