From: Tom Rini Date: Thu, 8 Feb 2018 07:27:05 -0500 Subject: [U-Boot] part: Allocate only one legacy_mbr buffer In-Reply-To: <20180129195824.737-1-abrodkin@synopsys.com> References: <20180129195824.737-1-abrodkin@synopsys.com> Message-ID: <20180208122705.GG4297@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 Mon, Jan 29, 2018 at 10:58:24PM +0300, Alexey Brodkin wrote: > Commit ff98cb90514d ("part: extract MBR signature from partitions") > blindly switched allocated by ALLOC_CACHE_ALIGN_BUFFER buffer type from > "unsigned char" to "legacy_mbr" which caused allocation of size = > (typeof(legacy_mbr) * dev_desc->blksize) instead of just space enough > for "legacy_mbr" structure. > > Signed-off-by: Alexey Brodkin > Cc: Rob Clark > Cc: Peter Jones > Cc: Alexander Graf > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: