Skip to content

Commit

Permalink
[PATCH] autofs4 oops fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Jan 15, 2006
1 parent 7c7dce9 commit faf3a98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit faf3a98

Please sign in to comment.