projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git]
/
fs
/
notify
/
fanotify
/
fanotify_user.c
diff --git
a/fs/notify/fanotify/fanotify_user.c
b/fs/notify/fanotify/fanotify_user.c
index
b78dd1f
..
9e0c1af
100644
(file)
--- a/
fs/notify/fanotify/fanotify_user.c
+++ b/
fs/notify/fanotify/fanotify_user.c
@@
-702,7
+702,7
@@
static int fanotify_find_path(int dfd, const char __user *filename,
}
/* you can only watch an inode if you have read permissions on it */
- ret =
inode_permission(path->dentry->d_inode
, MAY_READ);
+ ret =
path_permission(path
, MAY_READ);
if (ret) {
path_put(path);
goto out;