From: Joseph Qi Date: Wed, 3 Jul 2013 22:00:52 +0000 (-0700) Subject: ocfs2: fix mutex_unlock and possible memory leak in ocfs2_remove_btree_range X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~434 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33add0e3a09a62c7796ea9838243c1cd933d8543;p=pandora-kernel.git ocfs2: fix mutex_unlock and possible memory leak in ocfs2_remove_btree_range In ocfs2_remove_btree_range, when calling ocfs2_lock_refcount_tree and ocfs2_prepare_refcount_change_for_del failed, it goes to out and then tries to call mutex_unlock without mutex_lock before. And when calling ocfs2_reserve_blocks_for_rec_trunc failed, it should free ref_tree before return. Signed-off-by: Joseph Qi Reviewed-by: Jie Liu Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed