Skip to content

Commit

Permalink
new helper: uaccess_kernel()
Browse files Browse the repository at this point in the history
commit db68ce1 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>
  • Loading branch information
Al Viro authored and Greg Kroah-Hartman committed Nov 27, 2018
1 parent 4c23544 commit 9265b0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/*
Expand Down

0 comments on commit 9265b0a

Please sign in to comment.