coreboot-kgpe-d16/src/superio
John Zhao 9857c90685 superio/common: Avoid NULL pointer dereference
Coverity detects dereferencing a pointer that might be "NULL" when
calling report_resource_stored. Add sanity check for dev to prevent
NULL pointer dereference.

Found-by: Coverity CID 1419488

Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I03efad87ba761e914b47e3294c646335cfbaed24
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43553
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2020-07-24 21:21:09 +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 superio/common: Avoid NULL pointer dereference 2020-07-24 21:21:09 +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 sio/nuvoton/common/early_serial.c: Guard serial enable 2020-07-19 18:18:12 +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