]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/sgiioc4.c
ide: sanitize ide_build_sglist() and ide_destroy_dmatable()
[linux-2.6-omap-h63xx.git] / drivers / ide / sgiioc4.c
index cb2657c4c9767a3823ea384626a5bea2e3b3c82f..6ef5a567d377b9a0415ad832e7175b680eff8919 100644 (file)
@@ -277,11 +277,12 @@ static void sgiioc4_dma_host_set(ide_drive_t *drive, int on)
                sgiioc4_clearirq(drive);
 }
 
-static void
-sgiioc4_resetproc(ide_drive_t * drive)
+static void sgiioc4_resetproc(ide_drive_t *drive)
 {
+       struct ide_cmd *cmd = &drive->hwif->cmd;
+
        sgiioc4_dma_end(drive);
-       ide_destroy_dmatable(drive);
+       ide_dma_unmap_sg(drive, cmd);
        sgiioc4_clearirq(drive);
 }