Re: 2.5.69-70 ide-cd to guarantee fault-free CD/DVD burning experience?

Jens Axboe (axboe@suse.de)
Wed, 28 May 2003 09:52:39 +0200


On Wed, May 28 2003, Jens Axboe wrote:
> > @@ -1609,7 +1615,7 @@
> >
> > static void post_transform_command(struct request *req)
> > {
> > - char *ibuf = req->buffer;
> > + char *ibuf = req->data?req->data:req->buffer;
> > u8 *c = req->cmd;
> >
> > if (!blk_pc_request(req))
>
> That is bad, though. I've changed this to just bail on !ibuf.

Sorry I misread that, ->data is the one we want. I'm wondering how this
got mixed up... So to clarify:

char *ibuf = req->data;

if (!blk_pc_request(req))
return;
if (!ibuf)
return;

-- 
Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/