mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
c2337c7091
commit
387e96c052
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ static int iscsit_attach_ooo_cmdsn(
|
|||
*/
|
||||
list_for_each_entry(ooo_tmp, &sess->sess_ooo_cmdsn_list,
|
||||
ooo_list) {
|
||||
while (ooo_tmp->cmdsn < ooo_cmdsn->cmdsn)
|
||||
if (ooo_tmp->cmdsn < ooo_cmdsn->cmdsn)
|
||||
continue;
|
||||
|
||||
list_add(&ooo_cmdsn->ooo_list,
|
||||
|
|
|
|||
Loading…
Reference in a new issue