1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Ensure that boot/reset are skipped if flash update fails

This commit is contained in:
Alex Forencich 2021-09-13 13:51:06 -07:00
parent dfe0dd38f0
commit 5435db91cb

View File

@ -1168,6 +1168,9 @@ int main(int argc, char *argv[])
free(segment);
}
if (ret)
goto err;
flash_release(pri_flash);
pri_flash = NULL;
flash_release(sec_flash);