ecryptfs: release reference to lower mount if interpose fails
commitc0eb70bb39fb08004120c5f5bc43faa907b5a5cb
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Thu, 29 Jul 2010 11:01:36 +0000 (29 13:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:27:21 +0000 (13 13:27 -0700)
treed5885ff39ea7bd57cdcb592c6ca1e98a6d929d96
parent8939a755413a77d8449ae22ed8cc80ebd5e7fa80
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