[Skiboot] [PATCH 3/6] external/gard: Fix Coverity defect 107465
Cyril Bur
cyril.bur at au1.ibm.com
Tue Sep 8 16:14:00 AEST 2015
Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
external/gard/gard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/gard/gard.c b/external/gard/gard.c
index 03c62a1..01488e3 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -539,7 +539,7 @@ static int reset_partition(struct gard_ctx *ctx)
{
int i, rc;
struct gard_record gard;
- memset(&gard, INT_MAX, sizeof(gard));
+ memset(&gard, 0xFF, sizeof(gard));
rc = blocklevel_erase(ctx->bl, ctx->gard_data_pos, ctx->gard_data_len);
if (rc) {
--
2.5.1
More information about the Skiboot
mailing list