From: Al Viro Date: Mon, 16 Sep 2013 00:54:18 +0000 (-0400) Subject: ecryptfs: ->lower_path.dentry is never NULL X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cbe9c08524a68a1bfc1ba8d84dabb985d18ff08d;p=openwrt%2Fstaging%2Fblogic.git ecryptfs: ->lower_path.dentry is never NULL ... on anything found via ->d_fsdata Signed-off-by: Al Viro --- diff --git a/fs/ecryptfs/dentry.c b/fs/ecryptfs/dentry.c index 8cefa8e13bcc..4000f6b3a750 100644 --- a/fs/ecryptfs/dentry.c +++ b/fs/ecryptfs/dentry.c @@ -81,8 +81,7 @@ static void ecryptfs_d_release(struct dentry *dentry) { struct ecryptfs_dentry_info *p = dentry->d_fsdata; if (p) { - if (p->lower_path.dentry) - path_put(&p->lower_path); + path_put(&p->lower_path); call_rcu(&p->rcu, ecryptfs_dentry_free_rcu); } }