aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c2
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 6f7cf3970383..e9b800e72559 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -3888,7 +3888,7 @@ qla2x00_update_fcports(scsi_qla_host_t *base_vha)
3888 list_for_each_entry(vha, &base_vha->hw->vp_list, list) { 3888 list_for_each_entry(vha, &base_vha->hw->vp_list, list) {
3889 atomic_inc(&vha->vref_count); 3889 atomic_inc(&vha->vref_count);
3890 list_for_each_entry(fcport, &vha->vp_fcports, list) { 3890 list_for_each_entry(fcport, &vha->vp_fcports, list) {
3891 if (fcport && fcport->drport && 3891 if (fcport->drport &&
3892 atomic_read(&fcport->state) != FCS_UNCONFIGURED) { 3892 atomic_read(&fcport->state) != FCS_UNCONFIGURED) {
3893 spin_unlock_irqrestore(&ha->vport_slock, flags); 3893 spin_unlock_irqrestore(&ha->vport_slock, flags);
3894 3894
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index df2c1e7ab652..1814df868526 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -2371,7 +2371,7 @@ qla2x00_remove_one(struct pci_dev *pdev)
2371 list_for_each_entry(vha, &ha->vp_list, list) { 2371 list_for_each_entry(vha, &ha->vp_list, list) {
2372 atomic_inc(&vha->vref_count); 2372 atomic_inc(&vha->vref_count);
2373 2373
2374 if (vha && vha->fc_vport) { 2374 if (vha->fc_vport) {
2375 spin_unlock_irqrestore(&ha->vport_slock, flags); 2375 spin_unlock_irqrestore(&ha->vport_slock, flags);
2376 2376
2377 fc_vport_terminate(vha->fc_vport); 2377 fc_vport_terminate(vha->fc_vport);