+2010-02-03 Torsten Landschoff <torsten@debian.org>
+
+ * kern/disk.c (grub_disk_read): Fix offset computation when reading
+ last sectors.
+
2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
* disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
grub_errno = GRUB_ERR_NONE;
- num = ((size + real_offset + pos + GRUB_DISK_SECTOR_SIZE - 1)
+ num = ((size + real_offset + GRUB_DISK_SECTOR_SIZE - 1)
>> GRUB_DISK_SECTOR_BITS);
p = grub_realloc (tmp_buf, num << GRUB_DISK_SECTOR_BITS);
goto finish;
}
- grub_memcpy (buf, tmp_buf + pos + real_offset, size);
+ grub_memcpy (buf, tmp_buf + real_offset, size);
/* Call the read hook, if any. */
if (disk->read_hook)