]> err.no Git - linux-2.6/commitdiff
[PATCH] autofs4 oops fix
authorIan Kent <raven@themaw.net>
Sat, 14 Jan 2006 21:20:37 +0000 (13:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Jan 2006 02:25:19 +0000 (18:25 -0800)
We forgot to initialise a couple of nameidata fields.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/root.c

index e93a7ae467c996644a189d5b73d4d538459dd758..62d8d4acb8bbbe75ba0965214808c259c4b1b292 100644 (file)
@@ -195,6 +195,8 @@ static int autofs4_dir_open(struct inode *inode, struct file *file)
                if (!empty)
                        d_invalidate(dentry);
 
+               nd.dentry = dentry;
+               nd.mnt = mnt;
                nd.flags = LOOKUP_DIRECTORY;
                status = (dentry->d_op->d_revalidate)(dentry, &nd);