From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 25 Feb 2014 08:57:27 -0500 Subject: [U-Boot] [U-Boot, v2] part_efi: fix protective mbr struct allocation In-Reply-To: <1392281304-19830-1-git-send-email-hector.palacios@digi.com> References: <1392281304-19830-1-git-send-email-hector.palacios@digi.com> Message-ID: <20140225135727.GS16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Lukasz Majewski 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: