coreboot/src/superio
John Zhao 8f5fbb0f26 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>
2020-07-12 19:40:53 +00:00
..
acpi treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
aspeed treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
common treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fintek treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ite superio/ite/Makefile.inc: Add it8613e 2020-05-26 13:03:50 +00:00
nsc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
nuvoton superio/nuvoton: Avoid NULL pointer dereference 2020-07-12 19:40:53 +00:00
renesas treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
serverengines treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smsc superio/smsc/sch5545: add support for SMSC SCH5545 2020-05-16 17:37:29 +00:00
winbond superio/winbond/w83977tf: Add suspend related fields 2020-06-16 20:17:26 +00:00
Makefile.inc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00