projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2337c7
)
iscsi-target: forever loop bug in iscsit_attach_ooo_cmdsn()
author
Dan Carpenter
<
[email protected]
>
Mon, 8 Aug 2011 21:06:44 +0000
(14:06 -0700)
committer
Nicholas Bellinger
<
[email protected]
>
Mon, 22 Aug 2011 19:26:19 +0000
(19:26 +0000)
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]
>
drivers/target/iscsi/iscsi_target_erl1.c
patch
|
blob
|
history
diff --git
a/drivers/target/iscsi/iscsi_target_erl1.c
b/drivers/target/iscsi/iscsi_target_erl1.c
index 980650792cf699de8de826722c0973752ed79cbc..c4c68da3e5004b3fa39eeb71829bbefab4e38632 100644
(file)
--- a/
drivers/target/iscsi/iscsi_target_erl1.c
+++ b/
drivers/target/iscsi/iscsi_target_erl1.c
@@
-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,