xfs: Fix missing xfs_iunlock() on error recovery path in xfs_readlink()
commit2fbe11fed22ed2751aaf4b4926f27730aaac5470
authorJan Kara <jack@suse.cz>
Wed, 11 Jan 2012 18:52:10 +0000 (11 18:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:18:52 +0000 (3 09:18 -0800)
tree23a80ce32f738643168226950d5cb7a02212513a
parent90af660bec3b2d47e17cb3caae742810656e2d4f
xfs: Fix missing xfs_iunlock() on error recovery path in xfs_readlink()

commit 9b025eb3a89e041bab6698e3858706be2385d692 upstream.

Commit b52a360b forgot to call xfs_iunlock() when it detected corrupted
symplink and bailed out. Fix it by jumping to 'out' instead of doing return.

CC: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Alex Elder <elder@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_vnodeops.c