Ryan O'Leary has submitted this change. ( https://review.coreboot.org/c/em100/+/44877 )
Change subject: em100: Return exit status 1 when verify fails ......................................................................
em100: Return exit status 1 when verify fails
Change-Id: I6fb21c0f6070eab5a700e4675b2e6da2f2f97930 Signed-off-by: Ryan O'Leary ryanoleary@google.com Reviewed-on: https://review.coreboot.org/c/em100/+/44877 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M em100.c 1 file changed, 6 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Stefan Reinauer: Looks good to me, approved
diff --git a/em100.c b/em100.c index e4f5e44..49d0d1e 100644 --- a/em100.c +++ b/em100.c @@ -1159,8 +1159,13 @@ done = read_sdram(&em100, readback, spi_start_address, length); if (done && (memcmp(data, readback, length) == 0)) printf("Verify: PASS\n"); - else + else { printf("Verify: FAIL\n"); + free(readback); + free(data); + em100_detach(&em100); + return 1; + } free(readback); }