pata_cs5536.c: fix array overrun
PATCH 1/1 pata_cs5536.c: fix array overrun
This patch fixes an obvious array overrun spotted by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
---9101f2e2691094244bd147a05225f6c84bdf7404
drivers/ata/pata_cs5536.c +1 -1
@@ -214,7 +214,7 @@ static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev)cs5536_read (pdev,DTC , &dtc); dtc &= ~(IDE_DRV_MASK << dshift); - dtc |= mwdma_timings[mode] << dshift; + dtc |= mwdma_timings[mode -XFER_MW_DMA_0 ] << dshift;cs5536_write (pdev,DTC , dtc); }
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Adrian" == Adrian Bunk <[email protected]> writes:
Adrian> This patch fixes an obvious array overrun spotted by the Adrian> Coverity checker.
Bart already posted a patch for this.
Signature · 1 line
Martin K. Petersen http://mkp.net/