diff options
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 7d361da8ceb2..1ca1210ec1c0 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -282,12 +282,12 @@ int ide_build_dmatable (ide_drive_t *drive, struct request *rq) | |||
282 | *--table |= cpu_to_le32(0x80000000); | 282 | *--table |= cpu_to_le32(0x80000000); |
283 | return count; | 283 | return count; |
284 | } | 284 | } |
285 | |||
285 | printk(KERN_ERR "%s: empty DMA table?\n", drive->name); | 286 | printk(KERN_ERR "%s: empty DMA table?\n", drive->name); |
287 | |||
286 | use_pio_instead: | 288 | use_pio_instead: |
287 | pci_unmap_sg(hwif->pci_dev, | 289 | ide_destroy_dmatable(drive); |
288 | hwif->sg_table, | 290 | |
289 | hwif->sg_nents, | ||
290 | hwif->sg_dma_direction); | ||
291 | return 0; /* revert to PIO for this request */ | 291 | return 0; /* revert to PIO for this request */ |
292 | } | 292 | } |
293 | 293 | ||