aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/fanotify/fanotify_user.c')
-rw-r--r--fs/notify/fanotify/fanotify_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
index a64313868d3a..2958e7a81f9c 100644
--- a/fs/notify/fanotify/fanotify_user.c
+++ b/fs/notify/fanotify/fanotify_user.c
@@ -488,7 +488,7 @@ static int fanotify_find_path(int dfd, const char __user *filename,
488 } 488 }
489 489
490 /* you can only watch an inode if you have read permissions on it */ 490 /* you can only watch an inode if you have read permissions on it */
491 ret = inode_permission(path->dentry->d_inode, MAY_READ); 491 ret = inode_permission2(path->mnt, path->dentry->d_inode, MAY_READ);
492 if (ret) 492 if (ret)
493 path_put(path); 493 path_put(path);
494out: 494out: