]> git.karo-electronics.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:19:37 +0000 (13:19 -0700)
commitdad6c1718407593186b140fab9ba73594e3f0be7
tree350e6cf1b75b6c96cff8d759550d44afbf8b3636
parent3dc47cf2aa0ce318160c81e24b27cf3afea6decd
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