[Skiboot] [PATCH 01/34] centaur: Initialize i2c master list
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sun Jul 24 09:26:55 AEST 2016
It was left uninitialized which could cause issues later on
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
hw/centaur.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/centaur.c b/hw/centaur.c
index 5e594c1..1f2b9c4 100644
--- a/hw/centaur.c
+++ b/hw/centaur.c
@@ -426,6 +426,7 @@ static bool centaur_add(uint32_t part_id, uint32_t mchip, uint32_t meng,
centaur->fsi_master_port = mport;
centaur->fsi_master_engine = meng ? MFSI_cMFSI1 : MFSI_cMFSI0;
init_lock(¢aur->lock);
+ list_head_init(¢aur->i2cms);
if (!centaur_check_id(centaur))
return false;
--
2.7.4
More information about the Skiboot
mailing list