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

Commit ab671149 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Further limit device-table (qla_devtbl) lookup to non-24xx.

parent 8474f3a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1794,7 +1794,8 @@ qla2x00_set_model_info(scsi_qla_host_t *vha, uint8_t *model, size_t len,
	char *st, *en;
	uint16_t index;
	struct qla_hw_data *ha = vha->hw;
	int use_tbl = !IS_QLA25XX(ha) && !IS_QLA81XX(ha);
	int use_tbl = !IS_QLA24XX_TYPE(ha) && !IS_QLA25XX(ha) &&
	    !IS_QLA81XX(ha);

	if (memcmp(model, BINZERO, len) != 0) {
		strncpy(ha->model_number, model, len);