Fix bug in basic_access error path.
[seabios.git] / 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);
 }