[Skiboot] [PATCH v2 4/5] external/gard: Use blocklevel_smart_erase()

Cyril Bur cyril.bur at au1.ibm.com
Wed Apr 19 14:11:42 AEST 2017


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 4b26a3b8..32a0003f 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -438,7 +438,7 @@ static int reset_partition(struct gard_ctx *ctx)
 	struct gard_record gard;
 	memset(&gard, 0xFF, sizeof(gard));
 
-	rc = blocklevel_erase(ctx->bl, ctx->gard_data_pos, ctx->gard_data_len);
+	rc = blocklevel_smart_erase(ctx->bl, ctx->gard_data_pos, ctx->gard_data_len);
 	if (rc) {
 		fprintf(stderr, "Couldn't erase the gard partition. Bailing out\n");
 		return rc;
-- 
2.12.2



More information about the Skiboot mailing list