summaryrefslogtreecommitdiff
path: root/include/rdma/ib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rdma/ib.h')
-rw-r--r--include/rdma/ib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib.h b/include/rdma/ib.h
index 83139b9ce409..f7c185ff7a11 100644
--- a/include/rdma/ib.h
+++ b/include/rdma/ib.h
@@ -75,7 +75,7 @@ struct sockaddr_ib {
*/
static inline bool ib_safe_file_access(struct file *filp)
{
- return filp->f_cred == current_cred() && !uaccess_kernel();
+ return filp->f_cred == current_cred();
}
#endif /* _RDMA_IB_H */