Modules/ATA - Error (instead of EOK) on IO failure
authorJohn Hodge <[email protected]>
Sat, 21 Dec 2013 09:36:10 +0000 (17:36 +0800)
committerJohn Hodge <[email protected]>
Sat, 21 Dec 2013 09:36:10 +0000 (17:36 +0800)
KernelLand/Modules/Storage/ATA/io.c

index 28ae899..5c979e4 100644 (file)
@@ -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;
                }
        }
        

UCC git Repository :: git.ucc.asn.au