]> bbs.cooldavid.org Git - net-next-2.6.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)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 9 Aug 2010 15:33:05 +0000 (10:33 -0500)
commit31f73bee3e170b7cabb35db9e2f4bf7919b9d036
tree70c0ebb11bb3839050df7fa26b42c94d05cf6a3c
parentc43f7b8fb03be8bcc579bfc4e6ab70eac887ab55
ecryptfs: release reference to lower mount if interpose fails

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>
Cc: stable@kernel.org
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/inode.c