floppy code reads too many sectors?
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