diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-20 21:08:07 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-28 16:43:25 -0400 |
commit | db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 (patch) | |
tree | 77eda1d247853a2d414e0047c620b3c72bb11a1a /arch/blackfin/kernel | |
parent | aaa2e7ac80f679230faf28a8e12e8d68dbe977eb (diff) |
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 89d5162d4ca6..89814850b08b 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c | |||
@@ -370,7 +370,7 @@ int _access_ok(unsigned long addr, unsigned long size) | |||
370 | /* Check that things do not wrap around */ | 370 | /* Check that things do not wrap around */ |
371 | if (addr > ULONG_MAX - size) | 371 | if (addr > ULONG_MAX - size) |
372 | return 0; | 372 | return 0; |
373 | if (segment_eq(get_fs(), KERNEL_DS)) | 373 | if (uaccess_kernel()) |
374 | return 1; | 374 | return 1; |
375 | #ifdef CONFIG_MTD_UCLINUX | 375 | #ifdef CONFIG_MTD_UCLINUX |
376 | if (1) | 376 | if (1) |