summaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2006-01-14 22:20:37 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-15 03:25:19 +0100
commitfaf3a98918aa5f14a29e0d246e194be58b9357f0 (patch)
tree019fc8c909704e6f242de3f84f968db3cdcf8401 /fs/autofs4
parent[PATCH] Fix double decrement of mqueue_mnt->mnt_count in sys_mq_open (diff)
downloadlinux-faf3a98918aa5f14a29e0d246e194be58b9357f0.tar.xz
linux-faf3a98918aa5f14a29e0d246e194be58b9357f0.zip
[PATCH] autofs4 oops fix
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>
Diffstat (limited to 'fs/autofs4')
-rw-r--r--fs/autofs4/root.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index e93a7ae467c9..62d8d4acb8bb 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -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);