]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ecryptfs: release reference to lower mount if interpose fails
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Thu, 29 Jul 2010 11:01:36 +0000 (13:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:30:51 +0000 (13:30 -0700)
commita672b7313b63923f9eb6025adf3c9ef34be00a2a
tree01910889d16b9a60a8f0fe3ada20931cec319404
parent46c7e62e6b5fd85c82c660249ab411773f6450c1
ecryptfs: release reference to lower mount if interpose fails

commit 31f73bee3e170b7cabb35db9e2f4bf7919b9d036 upstream.

In ecryptfs_lookup_and_interpose_lower() the lower mount is not decremented
if allocation of a dentry info struct failed. As a result the lower filesystem
cant be unmounted any more (since it is considered busy). This patch corrects
the reference counting.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/inode.c