Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1459c0e1 authored by Saurav Kashyap's avatar Saurav Kashyap Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Enclose adapter related calls in adapter check in failed state handler.

parent bf5b8ad7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3028,8 +3028,10 @@ qla8xxx_dev_failed_handler(scsi_qla_host_t *vha)
	ql_log(ql_log_fatal, vha, 0x00b8,
	    "Disabling the board.\n");

	if (IS_QLA82XX(ha)) {
		qla82xx_clear_drv_active(ha);
		qla82xx_idc_unlock(ha);
	}

	/* Set DEV_FAILED flag to disable timer */
	vha->device_flags |= DFLG_DEV_FAILED;