Commit 8ce84eeb5b40da21f20174dd25891a8409534237
1 parent
4714e63731
Exists in
master
and in
4 other branches
jfs: 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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/jfs/namei.c
... | ... | @@ -1600,7 +1600,7 @@ |
1600 | 1600 | |
1601 | 1601 | static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd) |
1602 | 1602 | { |
1603 | - if (nd->flags & LOOKUP_RCU) | |
1603 | + if (nd && nd->flags & LOOKUP_RCU) | |
1604 | 1604 | return -ECHILD; |
1605 | 1605 | /* |
1606 | 1606 | * This is not negative dentry. Always valid. |