* grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-09-05 08:47:39 +02:00
parent a40994852d
commit bcfcea0174
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.

View file

@ -57,7 +57,7 @@ grub_dvh_is_valid (grub_uint32_t *label)
for (pos = label;
pos < (label + sizeof (struct grub_dvh_block) / 4);
pos++)
sum += *pos;
sum += grub_be_to_cpu32 (*pos);
return ! sum;
}