[U-Boot] [U-Boot, v2] part_efi: fix protective mbr struct allocation

Tom Rini trini at ti.com
Tue Feb 25 14:57:27 CET 2014


On Thu, Feb 13, 2014 at 09:48:24AM +0100, Hector Palacios wrote:

> 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: Hector Palacios <hector.palacios at digi.com>
> Tested-by: Lukasz Majewski <l.majewski at samsung.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140225/19435031/attachment.pgp>


More information about the U-Boot mailing list