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 /mm/memory.c | |
parent | aaa2e7ac80f679230faf28a8e12e8d68dbe977eb (diff) |
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index a97a4cec2e1f..e8f4e10e770a 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -4136,7 +4136,7 @@ void __might_fault(const char *file, int line) | |||
4136 | * get paged out, therefore we'll never actually fault, and the | 4136 | * get paged out, therefore we'll never actually fault, and the |
4137 | * below annotations will generate false positives. | 4137 | * below annotations will generate false positives. |
4138 | */ | 4138 | */ |
4139 | if (segment_eq(get_fs(), KERNEL_DS)) | 4139 | if (uaccess_kernel()) |
4140 | return; | 4140 | return; |
4141 | if (pagefault_disabled()) | 4141 | if (pagefault_disabled()) |
4142 | return; | 4142 | return; |