Skip to content

Commit 1fc98aa

Browse files
Dan Carpentermartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix a condition in qla2x00_find_all_fabric_devs()
This code doesn't make sense unless the correct "fcport" was found. Link: https://lore.kernel.org/r/20200619143041.GD267142@mwanda Fixes: 9dd9686 ("scsi: qla2xxx: Add changes for devloss timeout in driver") Reviewed-by: Himanshu Madhani <[email protected]> Reviewed-by: Shyam Sundar <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent afe89f1 commit 1fc98aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5944,7 +5944,7 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha)
59445944
break;
59455945
}
59465946

5947-
if (NVME_TARGET(vha->hw, fcport)) {
5947+
if (found && NVME_TARGET(vha->hw, fcport)) {
59485948
if (fcport->disc_state == DSC_DELETE_PEND) {
59495949
qla2x00_set_fcport_disc_state(fcport, DSC_GNL);
59505950
vha->fcport_count--;

0 commit comments

Comments
 (0)