diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2018-02-19 09:49:52 +0100 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2018-02-26 05:35:58 +0000 |
commit | 5ea714accea63ba3ff13411b813fb3cfa9caf932 (patch) | |
tree | c5de81a735887b38407a416aff8213a460bba5cb /configs/config.intel_galileo_gen1 | |
parent | 12f656ced7469fffc6ba1f7befcea593894b0935 (diff) |
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>
Diffstat (limited to 'configs/config.intel_galileo_gen1')
0 files changed, 0 insertions, 0 deletions