From: Will Schmidt <will_schmidt@vnet.ibm.com>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
linux-kernel <linux-kernel@vger.kernel.org>,
linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: [bug] block subsystem related crash on Legacy iSeries viodasd.c
Date: Mon, 22 Oct 2007 08:56:45 -0500 [thread overview]
Message-ID: <1193061405.11003.33.camel@farscape.rchland.ibm.com> (raw)
In-Reply-To: <20071021124426.GS10674@kernel.dk>
On Sun, 2007-10-21 at 14:44 +0200, Jens Axboe wrote:
> On Fri, Oct 19 2007, Will Schmidt wrote:
> > Hi Jens, Stephen, and Everyone else.
...
> You need this, will remember to fix that up for the new branch as well.
>
> diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c
> index e824b67..2ce3622 100644
> --- a/drivers/block/viodasd.c
> +++ b/drivers/block/viodasd.c
> @@ -270,6 +270,7 @@ static int send_request(struct request *req)
> d = req->rq_disk->private_data;
>
> /* Now build the scatter-gather list */
> + memset(sg, 0, sizeof(sg));
> nsg = blk_rq_map_sg(req->q, req, sg);
> nsg = dma_map_sg(d->dev, sg, nsg, direction);
>
That appears to do the trick. Thanks!
Tested-By: Will Schmidt <will_schmidt@vnet.ibm.com>
prev parent reply other threads:[~2007-10-22 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 21:33 [bug] block subsystem related crash on Legacy iSeries viodasd.c Will Schmidt
2007-10-21 12:44 ` Jens Axboe
2007-10-22 13:56 ` Will Schmidt [this message]
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=1193061405.11003.33.camel@farscape.rchland.ibm.com \
--to=will_schmidt@vnet.ibm.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=sfr@canb.auug.org.au \
/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