mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@wildopensource.com>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@osdl.org>, achim.leubner@intel.com
Subject: [patch] 2.5.72 gdth.c 64 bit fix
Date: Mon, 23 Jun 2003 09:07:08 -0400	[thread overview]
Message-ID: <16118.64380.97977.716338@trained-monkey.org> (raw)

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

                 reply	other threads:[~2003-06-23 13:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16118.64380.97977.716338@trained-monkey.org \
    --to=jes@wildopensource.com \
    --cc=achim.leubner@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®