diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index ad3d1de51d8..40b059fc198 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c | |||
@@ -559,7 +559,7 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr, | |||
559 | ret = QLA_SUCCESS; | 559 | ret = QLA_SUCCESS; |
560 | 560 | ||
561 | /* Prepare burst-capable write on supported ISPs. */ | 561 | /* Prepare burst-capable write on supported ISPs. */ |
562 | if (IS_QLA25XX(ha) && !(faddr & ~OPTROM_BURST_SIZE) && | 562 | if (IS_QLA25XX(ha) && !(faddr & 0xfff) && |
563 | dwords > OPTROM_BURST_DWORDS) { | 563 | dwords > OPTROM_BURST_DWORDS) { |
564 | optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, | 564 | optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, |
565 | &optrom_dma, GFP_KERNEL); | 565 | &optrom_dma, GFP_KERNEL); |
@@ -1824,7 +1824,7 @@ qla25xx_read_optrom_data(struct scsi_qla_host *ha, uint8_t *buf, | |||
1824 | uint8_t *pbuf; | 1824 | uint8_t *pbuf; |
1825 | uint32_t faddr, left, burst; | 1825 | uint32_t faddr, left, burst; |
1826 | 1826 | ||
1827 | if (offset & ~OPTROM_BURST_SIZE) | 1827 | if (offset & 0xfff) |
1828 | goto slow_read; | 1828 | goto slow_read; |
1829 | if (length < OPTROM_BURST_SIZE) | 1829 | if (length < OPTROM_BURST_SIZE) |
1830 | goto slow_read; | 1830 | goto slow_read; |