diff options
author | John Zhao <john.zhao@intel.com> | 2020-06-26 08:53:54 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-30 05:58:37 +0000 |
commit | ff4ead052b8e4706e2480e62b68c46df8bd8a7c2 (patch) | |
tree | 302f7ccc67f8b21cd4e9e0788398493c95c47913 /.gitmodules | |
parent | bda27cd336a784d6ac55b2eb8af2635b26545fc4 (diff) | |
download | coreboot-ff4ead052b8e4706e2480e62b68c46df8bd8a7c2.tar.xz |
src/drivers/intel: Avoid NULL pointer dereference
Coverity detects dereferencing pointers that might be "NULL" when
calling acpigen_write_scope and acpigen_write_device. Add sanity
check for both of scope and name to prevent NULL pointer dereference.
Found-by: Coverity CID 1429979, 1429982
TEST=Built and boot up to kernel.
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: If17d12861f562dc0d6c98a5c91a9d3c0360ca2c9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42835
Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions