Index: uspace/drv/block/isa-ide/isa-ide.c
===================================================================
--- uspace/drv/block/isa-ide/isa-ide.c	(revision f32f89a9bbb1d594857703712a2f1665692243ba)
+++ uspace/drv/block/isa-ide/isa-ide.c	(revision ea50e6715564d0b1b526855dda7bc8f2f776dab7)
@@ -163,4 +163,8 @@
 	return EOK;
 error:
+	if (chan->channel != NULL) {
+		(void) ata_channel_destroy(chan->channel);
+		chan->channel = NULL;
+	}
 	if (irq_inited)
 		isa_ide_fini_irq(chan);
Index: uspace/drv/block/pci-ide/pci-ide.c
===================================================================
--- uspace/drv/block/pci-ide/pci-ide.c	(revision f32f89a9bbb1d594857703712a2f1665692243ba)
+++ uspace/drv/block/pci-ide/pci-ide.c	(revision ea50e6715564d0b1b526855dda7bc8f2f776dab7)
@@ -294,4 +294,8 @@
 	return EOK;
 error:
+	if (chan->channel != NULL) {
+		(void) ata_channel_destroy(chan->channel);
+		chan->channel = NULL;
+	}
 	if (buffer != NULL)
 		dmamem_unmap_anonymous(buffer);
