coreboot/src
John Zhao 3d6066eacc soc/intel/tigerlake: 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 1429981
TEST=Built and boot up to kernel.

Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: Iea3801585e8c294fb889a8137b534bb932696025
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42836
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-06-30 05:58:55 +00:00
..
acpi ACPI: Replace smm_setup_structures() 2020-06-24 11:49:15 +00:00
arch smbios: Add option VPD_SMBIOS_VERSION that reads BIOS version from a VPD variable 2020-06-28 21:48:38 +00:00
commonlib cbmem: Remove IDs for TSEG and BERT 2020-06-22 22:57:13 +00:00
console console: Update for vboot before bootblock 2020-06-15 22:07:12 +00:00
cpu ACPI: Replace smm_setup_structures() 2020-06-24 11:49:15 +00:00
device Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
drivers src/drivers/intel: Avoid NULL pointer dereference 2020-06-30 05:58:37 +00:00
ec ec/google/wilco: Suppress UCSI events in S0ix 2020-06-17 19:46:36 +00:00
include arch/x86/smbios: Add more fields to be overriden for type 3 and 4 2020-06-25 11:54:35 +00:00
lib lib/hardwaremain: Drop HAVE_ACPI_RESUME guards 2020-06-18 13:01:08 +00:00
mainboard src: Remove whitespaces before tabs 2020-06-30 05:58:08 +00:00
northbridge sb/intel/i82801ix: Use pmutil.h definitions 2020-06-27 23:37:19 +00:00
security lockdown: Add hint for how to check for lockdown support in boot log 2020-06-22 12:27:18 +00:00
soc soc/intel/tigerlake: Avoid NULL pointer dereference 2020-06-30 05:58:55 +00:00
southbridge sb/intel/i82801jx: Use pmutil.h definitions 2020-06-27 23:37:30 +00:00
superio superio/winbond/w83977tf: Add suspend related fields 2020-06-16 20:17:26 +00:00
vendorcode vendorcode/intel/fsp/fsp2_0/cpx_sp: Update to FSP ww24 release and adapt soc 2020-06-28 21:52:43 +00:00
Kconfig smbios: Add option VPD_SMBIOS_VERSION that reads BIOS version from a VPD variable 2020-06-28 21:48:38 +00:00