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 /include/rdma | |
parent | aaa2e7ac80f679230faf28a8e12e8d68dbe977eb (diff) | |
download | op-kernel-dev-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.zip op-kernel-dev-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.tar.gz |
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib.h b/include/rdma/ib.h index 9b4c22a3..66dbed0 100644 --- a/include/rdma/ib.h +++ b/include/rdma/ib.h @@ -100,7 +100,7 @@ struct sockaddr_ib { */ static inline bool ib_safe_file_access(struct file *filp) { - return filp->f_cred == current_cred() && segment_eq(get_fs(), USER_DS); + return filp->f_cred == current_cred() && !uaccess_kernel(); } #endif /* _RDMA_IB_H */ |