Skip to content

Commit

Permalink
ide-cd: fix CD/DVD burning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Schwab authored and Bartlomiej Zolnierkiewicz committed Feb 26, 2008
1 parent 9f10d9e commit bcd88ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit bcd88ac

Please sign in to comment.