]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: manually do the iput once ocfs2_add_entry failed in ocfs2_symlink and ocfs2_mknod
authorjiangyiwen <jiangyiwen@huawei.com>
Thu, 22 May 2014 00:42:33 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:33 +0000 (10:42 +1000)
commit4bc5726a9f6feff3380dd5bb2a296985071cb624
tree51fd365fac0787d0684f553cedae7a2c9ef08448
parentd18e7848b49b6bee12a02b42cbf9b35a4ed4cea3
ocfs2: manually do the iput once ocfs2_add_entry failed in ocfs2_symlink and ocfs2_mknod

When the call to ocfs2_add_entry() failed in ocfs2_symlink() and
ocfs2_mknod(), iput() will not be called during dput(dentry) because no
d_instantiate(), and this will lead to umount hung.

Signed-off-by: jiangyiwen <jiangyiwen@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/namei.c