fpi-ssm: Also bug-on negative state value
Being an integer, anything could happen.
This commit is contained in:
parent
20a52593eb
commit
0241617713
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ void
|
||||||
fpi_ssm_jump_to_state (FpiSsm *machine, int state)
|
fpi_ssm_jump_to_state (FpiSsm *machine, int state)
|
||||||
{
|
{
|
||||||
BUG_ON (machine->completed);
|
BUG_ON (machine->completed);
|
||||||
BUG_ON (state >= machine->nr_states);
|
BUG_ON (state < 0 || state >= machine->nr_states);
|
||||||
machine->cur_state = state;
|
machine->cur_state = state;
|
||||||
__ssm_call_handler (machine);
|
__ssm_call_handler (machine);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue