aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-09-08 16:13:59 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-08 16:22:41 +1000
commitd35fea3f055d0dac247361d5c787524e63e337ea (patch)
tree275c85e73e26addc96b5ec70c327cdff48390b47 /external
parent49de60835639e3bbd904a4135e77ae46dcf9bfd0 (diff)
downloadskiboot-d35fea3f055d0dac247361d5c787524e63e337ea.zip
skiboot-d35fea3f055d0dac247361d5c787524e63e337ea.tar.gz
skiboot-d35fea3f055d0dac247361d5c787524e63e337ea.tar.bz2
external/gard: Fix Coverity defect 107466
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/gard/gard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/gard/gard.c b/external/gard/gard.c
index 5af80d9..03c62a1 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -491,7 +491,7 @@ static int do_clear_i(struct gard_ctx *ctx, int pos, struct gard_record *gard, v
if (be32toh(gard->record_id) != *(uint32_t *)priv)
return 0;
- memset(&null_gard, INT_MAX, sizeof(null_gard));
+ memset(&null_gard, 0xFF, sizeof(null_gard));
largest = get_largest_pos(ctx);