mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
aaa2e7ac80
commit
db68ce10c4
32 changed files with 44 additions and 42 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue