diff options
author | John Zhao <john.zhao@intel.com> | 2020-06-26 10:38:42 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-12 19:40:53 +0000 |
commit | 8f5fbb0f26b8270ebdbec87925aa2b1604c83251 (patch) | |
tree | 4d3e8e6e92fe33f8552a3fd9e6af5a0454bdd267 /src/include/stdbool.h | |
parent | 4a924dce995cd30a845bc75f41cdb00458b27244 (diff) |
superio/nuvoton: Avoid NULL pointer dereference
Coverity detects dereferencing a pointer that might be "NULL" when
calling acpigen_write_scope. Add sanity check for scope to prevent
NULL pointer dereference.
Found-by: Coverity CID 1420207
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: Icc253c63aadef1c0ecb116a38b608f64f80abc79
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42839
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/include/stdbool.h')
0 files changed, 0 insertions, 0 deletions