X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Finotify.c;h=bf7ce1d2412bb43928b908527287668eb59fb90d;hb=ba5c4f1bae89eba7b03e58a5448e8b28a006d4df;hp=9fbaebfdf40bef99428d0feaa50d9b69cba234d0;hpb=c85749e6d1df55ca5b23cb1d220ed7df92df8d78;p=powerpc.git diff --git a/fs/inotify.c b/fs/inotify.c index 9fbaebfdf4..bf7ce1d241 100644 --- a/fs/inotify.c +++ b/fs/inotify.c @@ -372,7 +372,7 @@ static int find_inode(const char __user *dirname, struct nameidata *nd) if (error) return error; /* you can only watch an inode if you have read permissions on it */ - error = permission(nd->dentry->d_inode, MAY_READ, NULL); + error = vfs_permission(nd, MAY_READ); if (error) path_release(nd); return error;