loadbsl: retry password if first attempt fails.
This commit is contained in:
parent
d11785c5d9
commit
0c5751275d
|
@ -432,9 +432,13 @@ static device_t loadbsl_open(const struct device_args *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rx_password(dev->trans) < 0) {
|
if (rx_password(dev->trans) < 0) {
|
||||||
dev->trans->ops->destroy(dev->trans);
|
printc_dbg("loadbsl: retrying password...\n");
|
||||||
free(dev);
|
|
||||||
return NULL;
|
if (rx_password(dev->trans) < 0) {
|
||||||
|
dev->trans->ops->destroy(dev->trans);
|
||||||
|
free(dev);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_and_load(dev->trans) < 0) {
|
if (check_and_load(dev->trans) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue