fuse: fix oops in revalidate when called with NULL nameidata
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 10 May 2011 15:35:58 +0000 (17:35 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 10 May 2011 15:35:58 +0000 (17:35 +0200)
commitd24339059d640f108c08ba99ef30e3bafa10f8e4
tree934d3c4f2abcddbfdbb52904d0b96c5a1915acd1
parent693d92a1bbc9e42681c42ed190bd42b636ca876f
fuse: fix oops in revalidate when called with NULL nameidata

Some cases (e.g. ecryptfs) can call ->dentry_revalidate with NULL
nameidata.

https://bugzilla.kernel.org/show_bug.cgi?id=34732

Tyler Hicks pointed out that this bug was introduced by commit
e7c0a16786 "fuse: make fuse_dentry_revalidate() RCU aware"

Reported-by: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dir.c