diff --git a/elks/arch/i86/drivers/block/directfd.c b/elks/arch/i86/drivers/block/directfd.c index cbd6be5de..ae8ae729b 100644 --- a/elks/arch/i86/drivers/block/directfd.c +++ b/elks/arch/i86/drivers/block/directfd.c @@ -774,7 +774,7 @@ static void DFPROC setup_rw_floppy(void) { DEBUG("setup_rw-"); #if IODELAY - int num_sectors = read_track? floppy->sect + (floppy->sect & 1 && !head); + int num_sectors = read_track? floppy->sect + (floppy->sect & 1 && !head) : CURRENT->rq_nr_sectors; DEBUG("[%ur%u]", current_drive, num_sectors); static unsigned lasttrack;