2008-07-02 Pavel Roskin <proski@gnu.org>

* disk/ata.c (grub_ata_readwrite): Don't increment sector number
	for every read sector, we already increment it for the whole
	batch.  This fixes reading more than 256 sectors at once.
This commit is contained in:
proski 2008-07-02 23:58:06 +00:00
parent 11e16b157b
commit f707af4216
2 changed files with 4 additions and 1 deletions

View file

@ -525,7 +525,6 @@ grub_ata_readwrite (grub_disk_t disk, grub_disk_addr_t sector,
GRUB_DISK_SECTOR_SIZE))
return grub_error (GRUB_ERR_READ_ERROR, "ATA read error");
buf += GRUB_DISK_SECTOR_SIZE;
sector++;
}
}
else