Skip to content
Snippets Groups Projects
Commit 61fcc7d2 authored by Hector Palacios's avatar Hector Palacios Committed by Tom Rini
Browse files

part_efi: fix protective mbr struct allocation


The calloc() call was allocating space for the sizeof the struct
pointer rather than for the struct contents.
Besides, since this buffer is passed to mmc for writing and some
platforms may use cache, the legacy_mbr struct should be cache-aligned.

Signed-off-by: default avatarHector Palacios <hector.palacios@digi.com>
Tested-by: default avatarLukasz Majewski <l.majewski@samsung.com>
parent 1674df60
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment