[SCSI] qla2xxx: Further limit device-table (qla_devtbl) lookup to non-24xx.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Tue, 25 Aug 2009 18:36:17 +0000 (11:36 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Sep 2009 14:35:21 +0000 (09:35 -0500)
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>
drivers/scsi/qla2xxx/qla_init.c

index 51f81b272776b4115799350a33d2c98318696d87..825700ae50416a5602aafc3324cf87bf86ee9b73 100644 (file)
@@ -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);