mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
eCryptfs: Swap dput() and mntput()
ecryptfs_d_release() is doing a mntput before doing the dput. This patch moves the dput before the mntput. Thanks to Rajouri Jammu for reporting this. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Cc: Rajouri Jammu <rajouri.jammu@gmail.com> Cc: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ae66be9b71
commit
5366dc9fd1
1 changed files with 1 additions and 1 deletions
|
@ -80,8 +80,8 @@ static void ecryptfs_d_release(struct dentry *dentry)
|
|||
{
|
||||
if (ecryptfs_dentry_to_private(dentry)) {
|
||||
if (ecryptfs_dentry_to_lower(dentry)) {
|
||||
mntput(ecryptfs_dentry_to_lower_mnt(dentry));
|
||||
dput(ecryptfs_dentry_to_lower(dentry));
|
||||
mntput(ecryptfs_dentry_to_lower_mnt(dentry));
|
||||
}
|
||||
kmem_cache_free(ecryptfs_dentry_info_cache,
|
||||
ecryptfs_dentry_to_private(dentry));
|
||||
|
|
Loading…
Reference in a new issue