summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2018-06-12 00:04:56 -0600
committerTom Rini <[email protected]>2018-06-18 14:43:14 -0400
commitaf880e247d502844e01219995cbdbee4b3e6d204 (patch)
tree64a372e1ba5a814387d03e25d311eabcdc269f98 /include/linux
parentc2e4e7e6316a1683be56618a5918732477742fbc (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 <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions