[Skiboot] [PATCH 5/6] libflash/test: Fix Coverity defect 98827

Cyril Bur cyril.bur at au1.ibm.com
Tue Sep 8 16:14:02 AEST 2015


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 libflash/test/test-ecc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libflash/test/test-ecc.c b/libflash/test/test-ecc.c
index 9d5a43a..ad017b2 100644
--- a/libflash/test/test-ecc.c
+++ b/libflash/test/test-ecc.c
@@ -381,7 +381,7 @@ int main(void)
 	for (i = 64; i < NUM_ECC_ROWS; i++) {
 		if (eccgenerate(be64toh(ecc_data[i].data)) != ecc_data[i].ecc) {
 			ERR("ECC did not generate the correct value, expecting 0x%02x, got 0x%02x\n",
-					ecc_data[i].ecc, eccgenerate(dst));
+					ecc_data[i].ecc, eccgenerate(be64toh(ecc_data[i].data)));
 		}
 	}
 
-- 
2.5.1



More information about the Skiboot mailing list