提交 bcd88ac3 编写于 作者: A Andreas Schwab 提交者: Bartlomiej Zolnierkiewicz

ide-cd: fix CD/DVD burning

Move counting of sense bytes into the transfer loop.
Signed-off-by: NAndreas Schwab <schwab@suse.de>
Acked-by: NBorislav Petkov <petkovbb@gmail.com>
Cc: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 9f10d9ee
......@@ -1178,11 +1178,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
else
rq->data += blen;
}
if (!write && blk_sense_request(rq))
rq->sense_len += blen;
}
if (write && blk_sense_request(rq))
rq->sense_len += thislen;
/*
* pad, if necessary
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册