瀏覽代碼

[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>
Ian Kent 19 年之前
父節點
當前提交
faf3a98918
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/autofs4/root.c

+ 2 - 0
fs/autofs4/root.c

@@ -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);