summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-04-08 11:35:38 +0530
committerStewart Smith <stewart@linux.ibm.com>2019-04-09 11:49:52 +1000
commitdfa935ebaa5438bfd2b4623743a54686fecce353 (patch)
tree548ce04cef7891a1837d8a8281709d5d1e3fc1bb
parent7f291166283f0f02e75787023326279036feebe1 (diff)
downloadblackbird-skiboot-dfa935ebaa5438bfd2b4623743a54686fecce353.tar.gz
blackbird-skiboot-dfa935ebaa5438bfd2b4623743a54686fecce353.zip
test-ipmi-hiomap: Assert if size is zero
Cc: Andrew Jeffery <andrew@aj.id.au> Cc: skiboot-stable@lists.ozlabs.org Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--libflash/test/test-ipmi-hiomap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c
index dc855c5a..bf31a0e7 100644
--- a/libflash/test/test-ipmi-hiomap.c
+++ b/libflash/test/test-ipmi-hiomap.c
@@ -205,8 +205,9 @@ int ipmi_sel_register(uint8_t oem_cmd __attribute__((unused)),
int64_t lpc_write(enum OpalLPCAddressType addr_type __attribute__((unused)),
uint32_t addr __attribute__((unused)),
uint32_t data __attribute__((unused)),
- uint32_t sz __attribute__((unused)))
+ uint32_t sz)
{
+ assert(sz != 0);
return 0;
}
OpenPOWER on IntegriCloud