[U-Boot] [U-Boot, v2, 2/8] console: Fix handling of NULL global_data

Tom Rini trini at konsulko.com
Tue Jun 19 18:42:25 UTC 2018


On Tue, Jun 12, 2018 at 12:04:56AM -0600, Simon Glass wrote:

> Both putc() and puts() can be called before global_data is set up. Some of
> the code paths don't handle this correctly. Add an explicit test before
> any member is accessed.
> 
> Reported-by: Coverity (CID: 169030)
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/7bcec882/attachment.sig>


More information about the U-Boot mailing list