[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] floppy code reads too many sectors?

From: Jani Monoses
Subject: [Qemu-devel] floppy code reads too many sectors?
Date: Thu, 5 Aug 2004 12:01:42 +0300


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]