From bcfcea017450f10831b283261206a618baa45eb4 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 5 Sep 2012 08:47:39 +0200 Subject: [PATCH] * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap. --- ChangeLog | 4 ++++ grub-core/partmap/dvh.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0cf6bea9a..70f0c86ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-09-05 Vladimir Serbinenko + + * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap. + 2012-09-05 Vladimir Serbinenko * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer. diff --git a/grub-core/partmap/dvh.c b/grub-core/partmap/dvh.c index c8f467eb5..79ec01b8e 100644 --- a/grub-core/partmap/dvh.c +++ b/grub-core/partmap/dvh.c @@ -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; }