diff options
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 8e9d37d44e9d..c1bd0306d6c6 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -636,7 +636,7 @@ lookup_out: | |||
636 | static int | 636 | static int |
637 | cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | 637 | cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) |
638 | { | 638 | { |
639 | if (nd->flags & LOOKUP_RCU) | 639 | if (nd && (nd->flags & LOOKUP_RCU)) |
640 | return -ECHILD; | 640 | return -ECHILD; |
641 | 641 | ||
642 | if (direntry->d_inode) { | 642 | if (direntry->d_inode) { |