Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / fs / proc / root.c
index 6927b29ece762554ecc9b29e002222f5cc3138b0..8b145e7b96614a8da1f5df306fae771539a613a3 100644 (file)
@@ -247,7 +247,7 @@ static int proc_root_getattr(const struct path *path, struct kstat *stat,
 
 static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
 {
-       if (!proc_pid_lookup(dir, dentry, flags))
+       if (!proc_pid_lookup(dentry, flags))
                return NULL;
 
        return proc_lookup(dir, dentry, flags);