We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d61ef commit 902e09cCopy full SHA for 902e09c
fs/dcache.c
@@ -2967,11 +2967,11 @@ static int __d_unalias(struct dentry *dentry, struct dentry *alias)
2967
goto out_err;
2968
m2 = &alias->d_parent->d_inode->i_rwsem;
2969
out_unalias:
2970
- if (alias->d_op->d_unalias_trylock &&
+ if (alias->d_op && alias->d_op->d_unalias_trylock &&
2971
!alias->d_op->d_unalias_trylock(alias))
2972
2973
__d_move(alias, dentry, false);
2974
- if (alias->d_op->d_unalias_unlock)
+ if (alias->d_op && alias->d_op->d_unalias_unlock)
2975
alias->d_op->d_unalias_unlock(alias);
2976
ret = 0;
2977
out_err:
0 commit comments