coreboot-kgpe-d16/src/mainboard/siemens
Werner Zeh 5ea714acce mb/siemens/mc_bdx1: Avoid dereferencing a NULL pointer
Coverity scan has found an error where a NULL pointer is dereferenced.
The bug would happen if the devicetree does not contain a valid entry
for PCA9538. In this case the code
 * if (dev->path.i2c.device == PCA9538_SLAVE_ADR)
would dereference to a NULL pointer.

This patch fixes this issue. Thanks coverity!

Found-by: Coverity (CID 1386126: Null pointer dereferences (REVERSE_INULL))
Change-Id: I75e271d86c16fa3938420c43575ebba910f6a2fd
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/23808
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-02-26 05:35:58 +00:00
..
mc_apl1 siemens/mc_apl1: Select CONFIG_NC_FPGA_NOTIFY_CB_READY 2017-11-07 12:34:13 +00:00
mc_bdx1 mb/siemens/mc_bdx1: Avoid dereferencing a NULL pointer 2018-02-26 05:35:58 +00:00
mc_tcu3 mb/*/*/cmos.layout: Fix the values for the console level 2018-01-26 17:28:56 +00:00
sitemp_g1p1 AMD platforms: Fix ASL comment that implies "\_SB" is southbridge 2017-11-28 03:53:32 +00:00
Kconfig
Kconfig.name