mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-19 14:56:21 +00:00
[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>
This commit is contained in:
parent
7c7dce9209
commit
faf3a98918
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user