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:
parent
dfe0dd38f0
commit
5435db91cb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user