Commit bcd88ac3 authored by Andreas Schwab's avatar Andreas Schwab Committed by Bartlomiej Zolnierkiewicz

ide-cd: fix CD/DVD burning

Move counting of sense bytes into the transfer loop.
Signed-off-by: default avatarAndreas Schwab <schwab@suse.de>
Acked-by: default avatarBorislav Petkov <petkovbb@gmail.com>
Cc: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment