From: Ian Kent Date: Sat, 14 Jan 2006 21:20:37 +0000 (-0800) Subject: [PATCH] autofs4 oops fix X-Git-Tag: firefly_0821_release~38896 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=faf3a98918aa5f14a29e0d246e194be58b9357f0;p=firefly-linux-kernel-4.4.55.git [PATCH] autofs4 oops fix We forgot to initialise a couple of nameidata fields. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);