From: Andreas Schwab Date: Tue, 26 Feb 2008 20:50:35 +0000 (+0100) Subject: ide-cd: fix CD/DVD burning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bcd88ac3b2ff2eae3d0fa57a6b02d4fce5392f32;p=openwrt%2Fstaging%2Fblogic.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 1495fe7a6ecf..c8d0e8715997 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 */