diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-20 21:08:07 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-02-11 17:54:07 +0000 |
commit | e07405d3cd382973ad9856ed3e35f9806e32e804 (patch) | |
tree | 18d6157fe146bcf190378bc47909f0e235896edd /include | |
parent | 6e217a61f145a4691610be07d345a30468cfad58 (diff) | |
download | linux-stable-e07405d3cd382973ad9856ed3e35f9806e32e804.tar.gz |
new helper: uaccess_kernel()
commit db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 upstream.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[only take the include/linux/uaccess.h portion - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/uaccess.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index ecd3319dac3314..ee7e1b8afd3a5b 100644 --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h @@ -2,6 +2,9 @@ #define __LINUX_UACCESS_H__ #include <linux/preempt.h> + +#define uaccess_kernel() segment_eq(get_fs(), KERNEL_DS) + #include <asm/uaccess.h> /* |