scsi: qla2xxx: Fix oops in qla2x00_probe_one error path
[sfrench/cifs-2.6.git] / drivers / scsi / qla2xxx / qla_os.c
index 3bd956d3bc5d9597f92b612c8aa27f3c73f6fca0..dce42a416876573087e497c9cf7242e267b04b4d 100644 (file)
@@ -3212,6 +3212,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
                ql_log(ql_log_fatal, base_vha, 0x00ed,
                    "Failed to start DPC thread.\n");
                ret = PTR_ERR(ha->dpc_thread);
+               ha->dpc_thread = NULL;
                goto probe_failed;
        }
        ql_dbg(ql_dbg_init, base_vha, 0x00ee,