aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index db6e617790bd..3f3fc7c7b2fe 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -326,6 +326,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
326{ 326{
327 struct ide_atapi_pc *pc = drive->pc; 327 struct ide_atapi_pc *pc = drive->pc;
328 ide_hwif_t *hwif = drive->hwif; 328 ide_hwif_t *hwif = drive->hwif;
329 struct ide_cmd *cmd = &hwif->cmd;
329 struct request *rq = hwif->rq; 330 struct request *rq = hwif->rq;
330 const struct ide_tp_ops *tp_ops = hwif->tp_ops; 331 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
331 xfer_func_t *xferfunc; 332 xfer_func_t *xferfunc;
@@ -346,7 +347,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
346 347
347 drive->waiting_for_dma = 0; 348 drive->waiting_for_dma = 0;
348 rc = hwif->dma_ops->dma_end(drive); 349 rc = hwif->dma_ops->dma_end(drive);
349 ide_destroy_dmatable(drive); 350 ide_dma_unmap_sg(drive, cmd);
350 351
351 if (rc || (drive->media == ide_tape && (stat & ATA_ERR))) { 352 if (rc || (drive->media == ide_tape && (stat & ATA_ERR))) {
352 if (drive->media == ide_floppy) 353 if (drive->media == ide_floppy)