diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-09-26 08:00:37 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-10-02 14:42:25 -0700 |
commit | 904753da183566c71211d23c169a80184648c121 (patch) | |
tree | 167df458259c2e2ce80b877a0a75d65ca341c95a /drivers/target | |
parent | fceb5bc7be7d9a98459fb1e44e1b1bedef094b2c (diff) | |
download | op-kernel-dev-904753da183566c71211d23c169a80184648c121.zip op-kernel-dev-904753da183566c71211d23c169a80184648c121.tar.gz |
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 <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index cca6d13..29f3b24 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; } |