Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82075
b: refs/heads/master
c: eba15fb
h: refs/heads/master
i:
  82073: 88c4461
  82071: db42d28
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent a5d5130 commit c33ac91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: f1071e628bc769174c3e2df7827a2a8ad05aea67
refs/heads/master: eba15fba1f046d25c663d294fc919ab59cec3e9c
10 changes: 6 additions & 4 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,11 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
if (dma) {
info->dma = 0;
dma_error = HWIF(drive)->ide_dma_end(drive);
if (dma_error) {
printk(KERN_ERR "%s: DMA %s error\n", drive->name,
rq_data_dir(rq) ? "write" : "read");
ide_dma_off(drive);
}
}

if (cdrom_decode_status(drive, 0, &stat))
Expand All @@ -1683,11 +1688,8 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
* using dma, transfer is complete now
*/
if (dma) {
if (dma_error) {
printk(KERN_ERR "ide-cd: dma error\n");
ide_dma_off(drive);
if (dma_error)
return ide_error(drive, "dma error", stat);
}

spin_lock_irqsave(&ide_lock, flags);
if (__blk_end_request(rq, 0, rq->data_len))
Expand Down

0 comments on commit c33ac91

Please sign in to comment.