]> xenbits.xensource.com Git - seabios.git/commitdiff
Fix bug in basic_access error path.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 2 Jan 2009 17:36:46 +0000 (12:36 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 2 Jan 2009 17:36:46 +0000 (12:36 -0500)
A missing 'return' statement caused the error to not be returned.

src/disk.c

index 02997fc400d4632b22d6476277d83f9092bd526f..87ccdde3a706a582c708f3e45a7f9a4a57565f16 100644 (file)
@@ -139,6 +139,7 @@ basic_access(struct bregs *regs, u8 device, u16 command)
         dprintf(1, "int13_harddisk: function %02x, error %d!\n"
                 , regs->ah, status);
         disk_ret(regs, DISK_RET_EBADTRACK);
+        return;
     }
     disk_ret(regs, DISK_RET_SUCCESS);
 }