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