Skip to content
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

[Backport v3.7-branch] net: lib: lwm2m: Fix missing mutex unlock #82422

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Dec 2, 2024

Backport 30b30c2 from #82231.

Fixes #82427

lwm2m_engine_set() and lwm2m_engine_get() locks
the registry_lock mutex, but this is not unlocked
when setting or getting a time resource where the buffer
lengths are invalid resulting in an early return without
unlocking the mutex. This results in a deadlock when
attempting to lock the registry in another thread.

Signed-off-by: Steven Poon <[email protected]>
(cherry picked from commit 30b30c2)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: LWM2M labels Dec 2, 2024
@nashif nashif merged commit 40851dc into v3.7-branch Dec 4, 2024
29 of 30 checks passed
@nashif nashif deleted the backport-82231-to-v3.7-branch branch December 4, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LWM2M Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants