From: rct@gherkin.frus.com (Bob Tracy)
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: James.Bottomley@SteelEye.com, linux-kernel@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: BAD_SG_DMA panic in aha1542
Date: Tue, 1 May 2007 13:32:30 -0500 (CDT) [thread overview]
Message-ID: <20070501183230.C7F44DBA1@gherkin.frus.com> (raw)
In-Reply-To: <20070501144623.361d37f0@the-village.bc.nu> "from Alan Cox at May 1, 2007 02:46:23 pm"
Alan Cox wrote:
> The one I sent has a memory leak but it won't matter for basic testing.
> Or you can change the final bit to
>
>
> scsi_normalize_sense((char *)sense, sizeof(*sense), &sshdr);
>
> if (zebedee != cgc->buffer) {
> if (cgc->data_direction == DMA_FROM_DEVICE)
> memcpy(cgc->buffer, zebedee, cgc->buflen);
> kfree(zebedee); /* Time for bed */
> }
I changed it, because I'll be living with this for a while I'd bet...
Works fine. No more BAD_SG_DMA() calls. Thanks!
--
-----------------------------------------------------------------------
Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------
next prev parent reply other threads:[~2007-05-01 18:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 2:10 Bob Tracy
2007-05-01 13:33 ` Jens Axboe
2007-05-01 13:42 ` Bob Tracy
2007-05-01 13:46 ` Alan Cox
2007-05-01 18:32 ` Bob Tracy [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-27 21:47 Bob Tracy
2007-04-27 22:13 ` Alan Cox
2007-04-27 23:56 ` Bob Tracy
2007-04-27 22:21 ` James Bottomley
2007-04-27 23:53 ` Bob Tracy
2007-04-30 14:33 ` Bob Tracy
2007-04-30 17:32 ` Jens Axboe
2007-04-30 17:39 ` Christoph Hellwig
2007-04-30 17:52 ` Jens Axboe
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=20070501183230.C7F44DBA1@gherkin.frus.com \
--to=rct@gherkin.frus.com \
--cc=James.Bottomley@SteelEye.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®