]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 5 Sep 2012 06:47:39 +0000 (08:47 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 5 Sep 2012 06:47:39 +0000 (08:47 +0200)
ChangeLog
grub-core/partmap/dvh.c

index 0cf6bea9a0f657c9a7815fb991254393378b5ee5..70f0c86aebaad43c8510c8c262ad13fcc0bf3056 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index c8f467eb5735a5ce86a7e26df215f4a6a0aab452..79ec01b8e01543ada2baa3ed3fd277516f5245f4 100644 (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;
 }