From: Christoph Hellwig <hch@lst.de>
To: jejb@steeleye.com, Atulm@lsil.com
Cc: linux-scsi@vger.kernel.org
Subject: [PATCH] fix wrong argument to pci_dma_sync_sg in megaraid driver
Date: Sun, 1 Feb 2004 17:00:32 +0100 [thread overview]
Message-ID: <20040201160032.GA14959@lst.de> (raw)
sgl is incremented for each element in the routine, but pci_dma_sync_sg
needs the original buffer.
--- 1.59/drivers/scsi/megaraid.c Fri Jan 23 06:37:03 2004
+++ edited/drivers/scsi/megaraid.c Sat Jan 31 07:09:25 2004
@@ -1805,7 +1805,7 @@
*len = (u32)cmd->request_bufflen;
if( scb->dma_direction == PCI_DMA_TODEVICE ) {
- pci_dma_sync_sg(adapter->dev, sgl, cmd->use_sg,
+ pci_dma_sync_sg(adapter->dev, cmd->request_buffer, cmd->use_sg,
PCI_DMA_TODEVICE);
}
next reply other threads:[~2004-02-01 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-01 16:00 Christoph Hellwig [this message]
2004-02-01 16:16 ` [PATCH] fix wrong argument to pci_dma_sync_sg in megaraid driver James Bottomley
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=20040201160032.GA14959@lst.de \
--to=hch@lst.de \
--cc=Atulm@lsil.com \
--cc=jejb@steeleye.com \
--cc=linux-scsi@vger.kernel.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