Commit 8ce84eeb5b40da21f20174dd25891a8409534237

Authored by Al Viro
1 parent 4714e63731

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

... ... @@ -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.