[bug] block subsystem related crash on Legacy iSeries viodasd.c

Will Schmidt will_schmidt at vnet.ibm.com
Mon Oct 22 23:56:45 EST 2007


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 at vnet.ibm.com>






More information about the Linuxppc-dev mailing list