diff options
author | Ian Kent <raven@themaw.net> | 2006-01-14 16:20:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 21:25:19 -0500 |
commit | faf3a98918aa5f14a29e0d246e194be58b9357f0 (patch) | |
tree | 019fc8c909704e6f242de3f84f968db3cdcf8401 | |
parent | 7c7dce9209161eb260cdf9e9172f72c3a02379e6 (diff) |
[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>
-rw-r--r-- | fs/autofs4/root.c | 2 |
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) | |||
195 | if (!empty) | 195 | if (!empty) |
196 | d_invalidate(dentry); | 196 | d_invalidate(dentry); |
197 | 197 | ||
198 | nd.dentry = dentry; | ||
199 | nd.mnt = mnt; | ||
198 | nd.flags = LOOKUP_DIRECTORY; | 200 | nd.flags = LOOKUP_DIRECTORY; |
199 | status = (dentry->d_op->d_revalidate)(dentry, &nd); | 201 | status = (dentry->d_op->d_revalidate)(dentry, &nd); |
200 | 202 | ||