ANDROID: dm verity fec: pack the fec_header structure
authorJeremy Compostella <jeremy.compostella@intel.com>
Tue, 10 May 2016 11:10:20 +0000 (13:10 +0200)
committerBadhri Jagan Sridharan <Badhri@google.com>
Wed, 10 Aug 2016 20:29:44 +0000 (13:29 -0700)
commitedb97738f20194cb7eea8eeb81bac21f4a8cfb83
tree152935fea74da87b18abcb14b23e984a8f934bce
parentad2f6cf0be78107a2bf435b8a21f801658935719
ANDROID: dm verity fec: pack the fec_header structure

The fec_header structure is generated build time and stored on disk.
The fec_header might be build on a 64 bits machine while it is read
per a 32 bits device or the other way around.  In such situations, the
fec_header fields are not aligned as expected by the device and it
fails to read the fec_header structure.

This patch makes the fec_header packed.

Change-Id: Idb84453e70cc11abd5ef3a0adfbb16f8b5feaf06
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
drivers/md/dm-android-verity.h