* grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
This commit is contained in:
parent
af211babd8
commit
68714c4392
2 changed files with 6 additions and 2 deletions
|
@ -839,8 +839,8 @@ nvlist_next_nvpair(const char *nvl, const char *nvpair)
|
|||
}
|
||||
}
|
||||
/* 8 bytes of 0 marks the end of the list */
|
||||
if (*(grub_uint64_t*)nvpair == 0)
|
||||
return (NULL);
|
||||
if (grub_get_unaligned64 (nvpair) == 0)
|
||||
return NULL;
|
||||
/*consistency checks*/
|
||||
if (nvpair + 4 * 3 >= nvl + VDEV_PHYS_SIZE)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue