]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/unix/af_unix.c
Merge branch 'master'
[linux-2.6-omap-h63xx.git] / net / unix / af_unix.c
index 41feca3bef86346f3890f8c428c795ff7316abf5..acc73ba8bade52770d1babc0bbf19e8abfe1cbef 100644 (file)
@@ -676,7 +676,7 @@ static struct sock *unix_find_other(struct sockaddr_un *sunname, int len,
                err = path_lookup(sunname->sun_path, LOOKUP_FOLLOW, &nd);
                if (err)
                        goto fail;
-               err = permission(nd.dentry->d_inode,MAY_WRITE, &nd);
+               err = vfs_permission(&nd, MAY_WRITE);
                if (err)
                        goto put_fail;