Skip to content

Commit cbe9c08

Browse files
author
Al Viro
committed
ecryptfs: ->lower_path.dentry is never NULL
... on anything found via ->d_fsdata Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 92dd123 commit cbe9c08

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/ecryptfs/dentry.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ static void ecryptfs_d_release(struct dentry *dentry)
8181
{
8282
struct ecryptfs_dentry_info *p = dentry->d_fsdata;
8383
if (p) {
84-
if (p->lower_path.dentry)
85-
path_put(&p->lower_path);
84+
path_put(&p->lower_path);
8685
call_rcu(&p->rcu, ecryptfs_dentry_free_rcu);
8786
}
8887
}

0 commit comments

Comments
 (0)