2003-06-23 13:12:11

by Jes Sorensen

[permalink] [raw]
Subject: [patch] 2.5.72 gdth.c 64 bit fix

Hi,

While looking through gdth.c in 2.5.72 I noticed a case where it
truncates the dma adress it passes to pci_unmap_single() on 64 bit
+ HIGHMEM archs.

Jes


--- drivers/scsi/gdth.c~ Mon Jun 16 21:20:06 2003
+++ drivers/scsi/gdth.c Mon Jun 23 05:58:11 2003
@@ -3662,7 +3662,7 @@
pci_unmap_single(ha->pdev,scp->SCp.dma_handle,
scp->request_bufflen,scp->SCp.Message);
if (scp->SCp.buffer)
- pci_unmap_single(ha->pdev,(dma_addr_t)(u32)scp->SCp.buffer,
+ pci_unmap_single(ha->pdev,(dma_addr_t)scp->SCp.buffer,
16,PCI_DMA_FROMDEVICE);
#endif
if (ha->status == S_OK) {