commit | 18fc706ad3b955a575be56e566e46bc0cf6380de | [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 | 89096569196bc5c34a0701da8a6eb754f813245f [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>