scsi: qla2xxx: Fix a typo in qla2x00_probe_one
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: Fix a typo in qla2x00_probe_one
What's the point unmapping ha->nx_pcibase when it does not exist. In fact, the original judgement causes ha->nx_pcibase to NOT be unmapped during error handling.
Fixes 0a63ad12e3ef ("[SCSI] qla2xxx: Dont clear drv active on iospace config failure.")
Signed-off-by GUO Zihua <[email protected]>
--- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_os.c +1 -1
@@ -3625,7 +3625,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) iospace_config_failed:if (IS_P3P_TYPE (ha)) { -if (!ha->nx_pcibase) +if (ha->nx_pcibase)iounmap ((device_reg_t *)ha->nx_pcibase);if (!ql2xdbwr)iounmap ((device_reg_t *)ha->nxdb_wr_ptr);
Signature · 1 line
2.17.1