diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2009-02-09 05:50:14 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-02-10 17:15:20 +0100 |
commit | 9088608e00d0d9e2a772532d828312e11b118340 (patch) | |
tree | 60e635902275ef2580676c8dedd2863ff347d1c9 /drivers/scsi/qla2xxx/qla_sup.c | |
parent | [SCSI] qla2xxx: Correct slab-error overwrite during vport creation and deletion. (diff) | |
download | linux-9088608e00d0d9e2a772532d828312e11b118340.tar.xz linux-9088608e00d0d9e2a772532d828312e11b118340.zip |
[SCSI] qla2xxx: Mask out 'reserved' bits while processing FLT regions.
Bits 31-8 are marked as reserved and should be ignored while
interpreting a region's code.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index 9c3b694c049d..284827926eff 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c @@ -684,7 +684,7 @@ qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) "end=0x%x size=0x%x.\n", le32_to_cpu(region->code), start, le32_to_cpu(region->end) >> 2, le32_to_cpu(region->size))); - switch (le32_to_cpu(region->code)) { + switch (le32_to_cpu(region->code) & 0xff) { case FLT_REG_FW: ha->flt_region_fw = start; break; |