iscsi-target: forever loop bug in iscsit_attach_ooo_cmdsn()
authorDan Carpenter <error27@gmail.com>
Mon, 8 Aug 2011 21:06:44 +0000 (14:06 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 22 Aug 2011 19:26:19 +0000 (19:26 +0000)
commit387e96c05299ca7a0ade874f343f91f0b01086a0
tree308be01da85fb7bf9466d8a2968db173905485ec
parentc2337c709102b343bd917ae00c79b266fb15b871
iscsi-target: forever loop bug in iscsit_attach_ooo_cmdsn()

This patch fixes a forever loop bug in iscsit_attach_ooo_cmdsn()
while walking sess->sess_ooo_cmdsn_list when the received
CmdSN is less than the tail of the list.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_erl1.c