From: Christoph Hellwig Date: Wed, 26 Sep 2012 12:00:37 +0000 (-0400) Subject: iscsit: remove incorrect unlock in iscsit_build_sendtargets_resp X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=904753da183566c71211d23c169a80184648c121;p=linux-beck.git iscsit: remove incorrect unlock in iscsit_build_sendtargets_resp Fix a potential multiple spin-unlock -> deadlock scenario during the overflow check within iscsit_build_sendtargets_resp() as found by sparse static checking. Signed-off-by: Christoph Hellwig Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index cca6d1384a1f..29f3b2414596 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -3274,7 +3274,6 @@ static int iscsit_build_sendtargets_response(struct iscsi_cmd *cmd) len += 1; if ((len + payload_len) > buffer_len) { - spin_unlock(&tiqn->tiqn_tpg_lock); end_of_buf = 1; goto eob; }