Skip to content

Commit

Permalink
All of our efi device path headers need to be packed.
Browse files Browse the repository at this point in the history
So just pack efidp_header and be done with it.

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Sep 13, 2016
1 parent 5a3a52e commit 9b3155b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/efivar/efivar-dp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef struct {
uint8_t type;
uint8_t subtype;
uint16_t length;
} efidp_header;
} __attribute__((__packed__)) efidp_header;

/* A little bit of housekeeping... */
typedef uint8_t efidp_boolean;
Expand Down

0 comments on commit 9b3155b

Please sign in to comment.