projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53fe924
)
ocfs2: fix d_revalidate oopsen on NFS exports
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 10 Mar 2011 08:45:07 +0000
(
03:45
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 10 Mar 2011 08:45:07 +0000
(
03:45
-0500)
can't blindly check nd->flags in ->d_revalidate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dcache.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/dcache.c
b/fs/ocfs2/dcache.c
index
6d80ecc
..
7eb9040
100644
(file)
--- a/
fs/ocfs2/dcache.c
+++ b/
fs/ocfs2/dcache.c
@@
-56,7
+56,7
@@
static int ocfs2_dentry_revalidate(struct dentry *dentry,
int ret = 0; /* if all else fails, just return false */
struct ocfs2_super *osb;
int ret = 0; /* if all else fails, just return false */
struct ocfs2_super *osb;
- if (nd->flags & LOOKUP_RCU)
+ if (nd
&& nd
->flags & LOOKUP_RCU)
return -ECHILD;
inode = dentry->d_inode;
return -ECHILD;
inode = dentry->d_inode;