Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75199
b: refs/heads/master
c: b481b23
h: refs/heads/master
i:
  75197: 6c84153
  75195: 0ba7a28
  75191: d08c01b
  75183: cb90e30
  75167: 31ec2cb
  75135: 1f3b555
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Dec 24, 2007
1 parent 7e08f44 commit fdf0e96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31a71191650dce1bb4a7de6147f1947795826cda
refs/heads/master: b481b23868928443931190c91e7c06e23913149d
13 changes: 8 additions & 5 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,8 +1805,9 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
/* Check for errors. */
if (dma) {
info->dma = 0;
if ((dma_error = HWIF(drive)->ide_dma_end(drive))) {
printk(KERN_ERR "ide-cd: write dma error\n");
dma_error = HWIF(drive)->ide_dma_end(drive);
if (dma_error) {
printk(KERN_ERR "%s: DMA write error\n", drive->name);
ide_dma_off(drive);
}
}
Expand Down Expand Up @@ -1839,8 +1840,9 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
*/
uptodate = 1;
if (rq->current_nr_sectors > 0) {
printk(KERN_ERR "%s: write_intr: data underrun (%d blocks)\n",
drive->name, rq->current_nr_sectors);
printk(KERN_ERR "%s: %s: data underrun (%d blocks)\n",
drive->name, __FUNCTION__,
rq->current_nr_sectors);
uptodate = 0;
}
cdrom_end_request(drive, uptodate);
Expand All @@ -1860,7 +1862,8 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
int this_transfer;

if (!rq->current_nr_sectors) {
printk(KERN_ERR "ide-cd: write_intr: oops\n");
printk(KERN_ERR "%s: %s: confused, missing data\n",
drive->name, __FUNCTION__);
break;
}

Expand Down

0 comments on commit fdf0e96

Please sign in to comment.