From 6716c65d6dbcd139ac1ce8231b61e47ce687b43f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 21 Dec 2013 17:36:10 +0800 Subject: [PATCH] Modules/ATA - Error (instead of EOK) on IO failure --- KernelLand/Modules/Storage/ATA/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KernelLand/Modules/Storage/ATA/io.c b/KernelLand/Modules/Storage/ATA/io.c index 28ae8996..5c979e48 100644 --- a/KernelLand/Modules/Storage/ATA/io.c +++ b/KernelLand/Modules/Storage/ATA/io.c @@ -153,8 +153,8 @@ int ATA_SetupIO(void) outb(base+0x03, 0xFF); if(inb(base+0x02) != 0x66 || inb(base+0x03) != 0xFF) { Log_Error("ATA", "Unable to write to 0x%x/0x%x", base+2, base+3); - LEAVE('i', 0); - return 0; + LEAVE('i', MODULE_ERR_MISC); + return MODULE_ERR_MISC; } } -- 2.20.1