[Skiboot] [PATCH 1/8] p7ioc_err_inject_io32() - Fix uninitialized variable warning
Kamalesh Babulal
kamalesh at linux.vnet.ibm.com
Tue Jun 23 18:37:31 AEST 2015
Fix uninitialized variable warning in p7ioc_err_inject_io32().
Fixes Coverity defect #97880
Signed-off-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
Reviewed-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
---
hw/p7ioc-phb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/p7ioc-phb.c b/hw/p7ioc-phb.c
index 89592c4..d282363 100644
--- a/hw/p7ioc-phb.c
+++ b/hw/p7ioc-phb.c
@@ -1408,6 +1408,7 @@ static int64_t p7ioc_err_inject_io32(struct p7ioc_phb *p, uint32_t pe_no,
uint64_t ctrl = PHB_PAPR_ERR_INJ_CTL_OUTB;
int32_t index;
+ a = 0x0ull;
addr = 0x0ull;
prefer = 0x0ull;
for (index = 0; index < 128; index++) {
--
2.1.2
More information about the Skiboot
mailing list