diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-15 20:54:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:48 -0400 |
commit | cbe9c08524a68a1bfc1ba8d84dabb985d18ff08d (patch) | |
tree | 3b3d2c4cf14844f911b62de0f97971c426c23d0b /fs/ecryptfs | |
parent | 92dd123033d50051d1352fada1bad91c22a119cf (diff) | |
download | blackbird-op-linux-cbe9c08524a68a1bfc1ba8d84dabb985d18ff08d.tar.gz blackbird-op-linux-cbe9c08524a68a1bfc1ba8d84dabb985d18ff08d.zip |
ecryptfs: ->lower_path.dentry is never NULL
... on anything found via ->d_fsdata
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r-- | fs/ecryptfs/dentry.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } |