Skip to content

Conversation

sasdf
Copy link
Contributor

@sasdf sasdf commented Oct 14, 2025

This is manual cherrypick of:


Original commit message:

The keymgr_wait_until_done() function should be only called after an operation has been started by the caller.

This commit removes the IDLE status check from the switch-case in keymgr_wait_until_done() to enforce this invariant. If the keymgr is found to be IDLE the execution will now proceed to the default error-handling case and trigger a trap.

The `keymgr_wait_until_done()` function should be only called after
an operation has been started by the caller.

This commit removes the `IDLE` status check from the switch-case in
`keymgr_wait_until_done()` to enforce this invariant. If the keymgr
is found to be `IDLE` the execution will now proceed to the default
error-handling case and trigger a trap.

Change-Id: I35b5107174796e9a52eff7ab33bdc2260453a73b
Signed-off-by: Yi-Hsuan Deng <[email protected]>
(cherry picked from commit abac206)
@sasdf sasdf marked this pull request as ready for review October 14, 2025 14:38
@sasdf sasdf requested a review from a team as a code owner October 14, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant