build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/23808 )
Change subject: mb/siemens/mc_bdx1: Avoid dereferencing a NULL pointer
......................................................................
Patch Set 3:
Build Successful
https://qa.coreboot.org/job/coreboot-gerrit/67674/ : SUCCESS
--
To view, visit https://review.coreboot.org/23808
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I75e271d86c16fa3938420c43575ebba910f6a2fd
Gerrit-Change-Number: 23808
Gerrit-PatchSet: 3
Gerrit-Owner: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 19 Feb 2018 11:37:10 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Julien Viard de Galbert has abandoned this change. ( https://review.coreboot.org/23782 )
Change subject: mb/scaleway/tagada: Add Scalway Tagada Board
......................................................................
Abandoned
The multi commit version is merged in
--
To view, visit https://review.coreboot.org/23782
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: Id4ecb760b9ab07ab168b252542dcaaea4636d655
Gerrit-Change-Number: 23782
Gerrit-PatchSet: 1
Gerrit-Owner: Julien Viard de Galbert <jviarddegalbert(a)online.net>
Gerrit-Reviewer: Julien Viard de Galbert <jviarddegalbert(a)online.net>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/23808
Change subject: mc_bdx1: Fix coverity error
......................................................................
mc_bdx1: Fix coverity error
Coverity scan has found an error (CID 1386126) 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!
Change-Id: I75e271d86c16fa3938420c43575ebba910f6a2fd
Signed-off-by: Werner Zeh <werner.zeh(a)siemens.com>
---
M src/mainboard/siemens/mc_bdx1/mainboard.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/23808/1
diff --git a/src/mainboard/siemens/mc_bdx1/mainboard.c b/src/mainboard/siemens/mc_bdx1/mainboard.c
index ebc6d40..da7da91 100644
--- a/src/mainboard/siemens/mc_bdx1/mainboard.c
+++ b/src/mainboard/siemens/mc_bdx1/mainboard.c
@@ -259,11 +259,11 @@
struct device *pca9538_get_dev(void)
{
struct device *dev = NULL;
- do {
- dev = dev_find_path(dev, DEVICE_PATH_I2C);
+
+ while ((dev = dev_find_path(dev, DEVICE_PATH_I2C))) {
if (dev->path.i2c.device == PCA9538_SLAVE_ADR)
break;
- } while (dev);
+ };
return dev;
}
--
To view, visit https://review.coreboot.org/23808
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I75e271d86c16fa3938420c43575ebba910f6a2fd
Gerrit-Change-Number: 23808
Gerrit-PatchSet: 1
Gerrit-Owner: Werner Zeh <werner.zeh(a)siemens.com>