mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ide-cd: fix CD/DVD burning
Move counting of sense bytes into the transfer loop. Signed-off-by: Andreas Schwab <schwab@suse.de> Acked-by: Borislav Petkov <petkovbb@gmail.com> Cc: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
9f10d9ee0a
commit
bcd88ac3b2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue