* Mark la_array as packed.

- zfs_packed_la_array.patch
This commit is contained in:
rmh 2011-08-03 14:19:13 +02:00
parent 9603ecc7e8
commit 51d3a0f66f
3 changed files with 25 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
grub2 (1.99-10) UNRELEASED; urgency=low
* Mark la_array as packed.
- zfs_packed_la_array.patch
-- Robert Millan <rmh@debian.org> Wed, 03 Aug 2011 14:18:17 +0200
grub2 (1.99-9) unstable; urgency=low
[ Colin Watson ]

View File

@ -22,3 +22,4 @@ btrfs_stat.patch
partition_performance.patch
kfreebsd-9_ada_devices.patch
gfxterm_background.patch
zfs_packed_la_array.patch

View File

@ -0,0 +1,17 @@
2011-08-03 Robert Millan <rmh@gnu.org>
* include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
la_array as packed.
Reported by: Zachary Bedell
--- a/include/grub/zfs/zap_leaf.h
+++ b/include/grub/zfs/zap_leaf.h
@@ -90,7 +90,7 @@
{
grub_uint8_t la_array[ZAP_LEAF_ARRAY_BYTES];
grub_uint64_t la_array64;
- };
+ } __attribute__ ((packed));
grub_uint16_t la_next; /* next blk or CHAIN_END */
} l_array;
struct zap_leaf_free {