merge mainline into nestpart
This commit is contained in:
commit
bc6fcf0931
62 changed files with 7634 additions and 189 deletions
|
@ -449,7 +449,7 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector,
|
|||
|
||||
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);
|
||||
|
@ -466,7 +466,7 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector,
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue