Merge "Fix the behavior of undefined commands in BlockImageVerify"
am: ac4818d6af
Change-Id: I5e42bcafca4c42e6c30cef082c03ad2b8d18ac6c
This commit is contained in:
commit
7b9a92c1e2
1 changed files with 4 additions and 2 deletions
|
@ -1727,9 +1727,11 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
|
||||||
|
|
||||||
const Command* cmd = cmd_map[params.cmdname];
|
const Command* cmd = cmd_map[params.cmdname];
|
||||||
|
|
||||||
|
// Skip the command if we explicitly set the corresponding function pointer to nullptr, e.g.
|
||||||
|
// "erase" during block_image_verify.
|
||||||
if (cmd->f == nullptr) {
|
if (cmd->f == nullptr) {
|
||||||
LOG(ERROR) << "failed to find the function for command [" << line << "]";
|
LOG(DEBUG) << "skip executing command [" << line << "]";
|
||||||
goto pbiudone;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip all commands before the saved last command index when resuming an update.
|
// Skip all commands before the saved last command index when resuming an update.
|
||||||
|
|
Loading…
Reference in a new issue