From: Andreas Schwab Date: Tue, 26 Feb 2008 20:50:35 +0000 (+0100) Subject: ide-cd: fix CD/DVD burning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcd88ac3b2ff2eae3d0fa57a6b02d4fce5392f32;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ide-cd: fix CD/DVD burning Move counting of sense bytes into the transfer loop. Signed-off-by: Andreas Schwab Acked-by: Borislav Petkov Cc: Kiyoshi Ueda Cc: Jens Axboe Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 1495fe7a6ec..c8d0e871599 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -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 */