mirror of
https://github.com/corundum/corundum.git
synced 2025-02-06 08:38:23 +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);
|
free(segment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
goto err;
|
||||||
|
|
||||||
flash_release(pri_flash);
|
flash_release(pri_flash);
|
||||||
pri_flash = NULL;
|
pri_flash = NULL;
|
||||||
flash_release(sec_flash);
|
flash_release(sec_flash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user