Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360241
b: refs/heads/master
c: 4ac8d4c
h: refs/heads/master
i:
  360239: f2343dc
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Feb 22, 2013
1 parent df9b65a commit 80dad5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 827210ba2a368058c72cf93e66d7d8aeb55922eb
refs/heads/master: 4ac8d4ca5d8d3bb98072be2961dd2e937e05bb11
11 changes: 8 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3141,6 +3141,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
struct qla_hw_data *ha = vha->hw;
scsi_qla_host_t *vp;
unsigned long flags;
int found;

ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x10b6,
"Entered %s.\n", __func__);
Expand Down Expand Up @@ -3176,13 +3177,17 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
return;
}

found = 0;
spin_lock_irqsave(&ha->vport_slock, flags);
list_for_each_entry(vp, &ha->vp_list, list)
if (vp_idx == vp->vp_idx)
list_for_each_entry(vp, &ha->vp_list, list) {
if (vp_idx == vp->vp_idx) {
found = 1;
break;
}
}
spin_unlock_irqrestore(&ha->vport_slock, flags);

if (!vp)
if (!found)
return;

vp->d_id.b.domain = rptid_entry->port_id[2];
Expand Down

0 comments on commit 80dad5a

Please sign in to comment.