[Skiboot] [PATCH 2/3] test-ipmi-hiomap: Assert if size is zero

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Fri Apr 5 00:33:05 AEDT 2019


Cc: Andrew Jeffery <andrew at aj.id.au>
Cc: skiboot-stable at lists.ozlabs.org
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 libflash/test/test-ipmi-hiomap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c
index dc855c5a1..c4cc76d8c 100644
--- a/libflash/test/test-ipmi-hiomap.c
+++ b/libflash/test/test-ipmi-hiomap.c
@@ -207,6 +207,7 @@ int64_t lpc_write(enum OpalLPCAddressType addr_type __attribute__((unused)),
 		  uint32_t data __attribute__((unused)),
 		  uint32_t sz __attribute__((unused)))
 {
+	assert(sz != 0);
 	return 0;
 }
 
-- 
2.14.3



More information about the Skiboot mailing list