Commit faf3a989 authored by Ian Kent's avatar Ian Kent Committed by Linus Torvalds

[PATCH] autofs4 oops fix

We forgot to initialise a couple of nameidata fields.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7c7dce92
...@@ -195,6 +195,8 @@ static int autofs4_dir_open(struct inode *inode, struct file *file) ...@@ -195,6 +195,8 @@ static int autofs4_dir_open(struct inode *inode, struct file *file)
if (!empty) if (!empty)
d_invalidate(dentry); d_invalidate(dentry);
nd.dentry = dentry;
nd.mnt = mnt;
nd.flags = LOOKUP_DIRECTORY; nd.flags = LOOKUP_DIRECTORY;
status = (dentry->d_op->d_revalidate)(dentry, &nd); status = (dentry->d_op->d_revalidate)(dentry, &nd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment