X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Finotify.c;h=bf7ce1d2412bb43928b908527287668eb59fb90d;hb=ad8f76be48d817b48222411ae16a7dfe257bdb24;hp=9fbaebfdf40bef99428d0feaa50d9b69cba234d0;hpb=ccd7bc2f67fdfa9c47ceae64f1117d1fb6cb8737;p=linux-2.6 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;