Commit 552f3f9a authored by Masanari Iida's avatar Masanari Iida Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Avoid null pointer dereference in shutdown routine.

parent a865c50a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2808,6 +2808,9 @@ qla2x00_shutdown(struct pci_dev *pdev)
	scsi_qla_host_t *vha;
	struct qla_hw_data  *ha;

	if (!atomic_read(&pdev->enable_cnt))
		return;

	vha = pci_get_drvdata(pdev);
	ha = vha->hw;