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

Jens Axboe
2003-05-28T07:39:30Z

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