Skip to content

Commit 904753d

Browse files
Christoph HellwigNicholas Bellinger
authored andcommitted
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>
1 parent fceb5bc commit 904753d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/target/iscsi/iscsi_target.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3274,7 +3274,6 @@ static int iscsit_build_sendtargets_response(struct iscsi_cmd *cmd)
32743274
len += 1;
32753275

32763276
if ((len + payload_len) > buffer_len) {
3277-
spin_unlock(&tiqn->tiqn_tpg_lock);
32783277
end_of_buf = 1;
32793278
goto eob;
32803279
}

0 commit comments

Comments
 (0)