mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 09:02:17 +00:00
[SCSI] qla2xxx: Further limit device-table (qla_devtbl) lookup to non-24xx.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
8474f3a02a
commit
ab67114935
@ -1794,7 +1794,8 @@ qla2x00_set_model_info(scsi_qla_host_t *vha, uint8_t *model, size_t len,
|
|||||||
char *st, *en;
|
char *st, *en;
|
||||||
uint16_t index;
|
uint16_t index;
|
||||||
struct qla_hw_data *ha = vha->hw;
|
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) {
|
if (memcmp(model, BINZERO, len) != 0) {
|
||||||
strncpy(ha->model_number, model, len);
|
strncpy(ha->model_number, model, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user