diff options
| -rw-r--r-- | fs/ecryptfs/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 31ef5252f0fe..8cd617b66baa 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
| @@ -264,7 +264,7 @@ int ecryptfs_lookup_and_interpose_lower(struct dentry *ecryptfs_dentry, | |||
| 264 | printk(KERN_ERR "%s: Out of memory whilst attempting " | 264 | printk(KERN_ERR "%s: Out of memory whilst attempting " |
| 265 | "to allocate ecryptfs_dentry_info struct\n", | 265 | "to allocate ecryptfs_dentry_info struct\n", |
| 266 | __func__); | 266 | __func__); |
| 267 | goto out_dput; | 267 | goto out_put; |
| 268 | } | 268 | } |
| 269 | ecryptfs_set_dentry_lower(ecryptfs_dentry, lower_dentry); | 269 | ecryptfs_set_dentry_lower(ecryptfs_dentry, lower_dentry); |
| 270 | ecryptfs_set_dentry_lower_mnt(ecryptfs_dentry, lower_mnt); | 270 | ecryptfs_set_dentry_lower_mnt(ecryptfs_dentry, lower_mnt); |
| @@ -339,8 +339,9 @@ int ecryptfs_lookup_and_interpose_lower(struct dentry *ecryptfs_dentry, | |||
| 339 | out_free_kmem: | 339 | out_free_kmem: |
| 340 | kmem_cache_free(ecryptfs_header_cache_2, page_virt); | 340 | kmem_cache_free(ecryptfs_header_cache_2, page_virt); |
| 341 | goto out; | 341 | goto out; |
| 342 | out_dput: | 342 | out_put: |
| 343 | dput(lower_dentry); | 343 | dput(lower_dentry); |
| 344 | mntput(lower_mnt); | ||
| 344 | d_drop(ecryptfs_dentry); | 345 | d_drop(ecryptfs_dentry); |
| 345 | out: | 346 | out: |
| 346 | return rc; | 347 | return rc; |
