projects/linux·commit 6eaed0a4

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse

6eaed0a4 · Linus Torvalds <[email protected]> · 2011-05-12 08:06:53 -07:00

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  fuse: fix oops in revalidate when called with NULL nameidata
Commit
6eaed0a438ef554a282210a04da0de27b671d817
Parents
8043f4eb · d2433905

Merge commit. Changes below are compared with the first parent: 8043f4eb.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/fuse/dir.cmodified+1−1View file

fs/fuse/dir.c

View file
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index c6ba49b..b32eb29 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -174,7 +174,7 @@ static int fuse_dentry_revalidate(struct dentry *entry, struct nameidata *nd)
if (!inode)
return 0;
- if (nd->flags & LOOKUP_RCU)
+ if (nd && (nd->flags & LOOKUP_RCU))
return -ECHILD;
fc = get_fuse_conn(inode);