m68k: sg fallout
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
d91c5e8839
commit
5a1cb47ff4
@@ -332,8 +332,8 @@ static void dma_mmu_get_scsi_sgl (struct NCR_ESP *esp, Scsi_Cmnd *sp)
|
||||
struct scatterlist *sg = sp->SCp.buffer;
|
||||
|
||||
while (sz >= 0) {
|
||||
sg[sz].dma_address = dvma_map((unsigned long)page_address(sg[sz].page) +
|
||||
sg[sz].offset, sg[sz].length);
|
||||
sg[sz].dma_address = dvma_map((unsigned long)sg_virt(&sg[sz]),
|
||||
sg[sz].length);
|
||||
sz--;
|
||||
}
|
||||
sp->SCp.ptr=(char *)((unsigned long)sp->SCp.buffer->dma_address);
|
||||
|
Reference in New Issue
Block a user