diff options
author | John Zhao <john.zhao@intel.com> | 2020-06-26 10:00:02 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2020-07-10 17:33:39 +0000 |
commit | f6f1f734ee1b6322ebf3913743d5c526be65dc42 (patch) | |
tree | 2ab3194dbc31cbc4ed5d170a83ab2dab56b4bd92 /tests | |
parent | 7b1cb0d603ee38470d5571d564c6b4fed5348977 (diff) |
soc/amd/picasso: 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 1429980
TEST=None
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I6214fb83bccb19fe4edad65ce6b862815b8dcec6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42837
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions