mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] 2.5.72 gdth.c 64 bit fix
@ 2003-06-23 13:07 Jes Sorensen
  0 siblings, 0 replies; only message in thread
From: Jes Sorensen @ 2003-06-23 13:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, achim.leubner

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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-23 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-23 13:07 [patch] 2.5.72 gdth.c 64 bit fix Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®