-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: smf: check for NULL #71213
lib: smf: check for NULL #71213
Conversation
don't execute share_paren() if the target is NULL in smf_execute_ancestor_exit_actions() Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
I'm a bit confused over what situation I feel that exiting in |
@glenn-andrews in the docs and header it says explicitly that it is a valid function call:
|
My mistake. I apologize. I'm even more confused about the meaning of 'exits all states'. Does that mean the HSM terminates, or that it calls the exit action, or what? |
It calls the exit function the current state and if |
Oh. I think I see. You're trying to force the existing state machine to act like a terminate event calls all exit actions. Would the correct way to do that is to have a STATE_TERMINATED outside all other states, and transition to that and call `smf_set_terminated() in the entry action for that state? |
don't execute
share_paren()
if the target is NULLin
smf_execute_ancestor_exit_actions()
Fixes: #71215