aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index c0505e2dfc2e..d61f9a8cc18a 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -570,8 +570,12 @@ int ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd)
570 570
571 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 || 571 if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 ||
572 (dma_ops->dma_check && dma_ops->dma_check(drive, cmd)) || 572 (dma_ops->dma_check && dma_ops->dma_check(drive, cmd)) ||
573 ide_build_sglist(drive, cmd) == 0 || 573 ide_build_sglist(drive, cmd) == 0)
574 dma_ops->dma_setup(drive, cmd))
575 return 1; 574 return 1;
575 if (dma_ops->dma_setup(drive, cmd)) {
576 ide_destroy_dmatable(drive);
577 ide_map_sg(drive, cmd);
578 return 1;
579 }
576 return 0; 580 return 0;
577} 581}