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:
7b71162
)
qla2xxx: Incorrect linked list semantic in qlafx00_get_fcport().
author
Joe Carnuccio
<
[email protected]
>
Thu, 25 Sep 2014 09:16:44 +0000
(
05:16
-0400)
committer
Christoph Hellwig
<
[email protected]
>
Thu, 25 Sep 2014 12:25:02 +0000
(14:25 +0200)
Signed-off-by: Joe Carnuccio <
[email protected]
>
Signed-off-by: Saurav Kashyap <
[email protected]
>
Signed-off-by: Christoph Hellwig <
[email protected]
>
drivers/scsi/qla2xxx/qla_mr.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_mr.c
b/drivers/scsi/qla2xxx/qla_mr.c
index 8ecf6decea6757d673dda22d7c7497eb563e41e2..620e60a7a0eeee66ec32951fa6d216f441cb3890 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_mr.c
+++ b/
drivers/scsi/qla2xxx/qla_mr.c
@@
-1675,17
+1675,16
@@
qlafx00_get_fcport(struct scsi_qla_host *vha, int tgt_id)
fc_port_t *fcport;
/* Check for matching device in remote port list. */
- fcport = NULL;
list_for_each_entry(fcport, &vha->vp_fcports, list) {
if (fcport->tgt_id == tgt_id) {
ql_dbg(ql_dbg_async, vha, 0x5072,
"Matching fcport(%p) found with TGT-ID: 0x%x "
"and Remote TGT_ID: 0x%x\n",
fcport, fcport->tgt_id, tgt_id);
-
break
;
+
return fcport
;
}
}
- return
fcport
;
+ return
NULL
;
}
static void