On Tue, Jan 12, 2016 at 05:23:12PM +0800, Peng Fan wrote:

> From: Peng Fan <peng....@nxp.com>
> 
> We should use ARRAY_SIZE, but not sizeof. The size of
> env_flags_varaccess_mask is 16bytes, but we only need 4 loops.
> If using 16 as the end condition, we may access memory that
> not belong to array env_flags_varaccess_mask.
> 
> Signed-off-by: Peng Fan <peng....@nxp.com>
> Cc: Joe Hershberger <joe.hershber...@ni.com>
> Cc: York Sun <york...@freescale.com>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Tom Rini <tr...@konsulko.com>
> Reviewed-by: Simon Glass <s...@chromium.org>
> Acked-by: Joe Hershberger <joe.hershber...@ni.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to