Skip to contentSkip to conversation

floppy code reads too many sectors?

Qemu-devel Jani Monoses 1 participant 1 message Aug 5, 2004

lore
Share & tools
lore
#0 lore raw

Hello

fdctrl_read_data seems to pass the length of the data instead of the number of sectors to read to bdrv_read().

            if (len > FD_SECTOR_LEN)
                len = FD_SECTOR_LEN;
            bdrv_read(cur_drv->bs, fd_sector(cur_drv),
                      fdctrl->fifo, len);

All other uses of bdrv_read pass number of sectors.

This code is only called from fdctrl_init.

Jani