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

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jun 9 19:32:13 UTC 2018


On 06/09/2018 08:22 PM, 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>


More information about the U-Boot mailing list