commit | af880e247d502844e01219995cbdbee4b3e6d204 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jun 12 00:04:56 2018 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Jun 18 14:43:14 2018 -0400 |
tree | 64a372e1ba5a814387d03e25d311eabcdc269f98 | |
parent | c2e4e7e6316a1683be56618a5918732477742fbc [diff] |
console: Fix handling of NULL global_data 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@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>