Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ocfs2: fix d_revalidate oopsen on NFS exports

can't blindly check nd->flags in ->d_revalidate()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 4714e637 53fe9241

+1 -1
+1 -1
fs/ocfs2/dcache.c
··· 56 56 int ret = 0; /* if all else fails, just return false */ 57 57 struct ocfs2_super *osb; 58 58 59 - if (nd->flags & LOOKUP_RCU) 59 + if (nd && nd->flags & LOOKUP_RCU) 60 60 return -ECHILD; 61 61 62 62 inode = dentry->d_inode;