Skip to content

Refactor mem locks - #2789

Open
Andrezinrc wants to merge 2 commits into
ish-app:masterfrom
Andrezinrc:refactor-mem-locks
Open

Refactor mem locks#2789
Andrezinrc wants to merge 2 commits into
ish-app:masterfrom
Andrezinrc:refactor-mem-locks

Conversation

@Andrezinrc

Copy link
Copy Markdown

No description provided.

When timer_create() is called with SIGEV_THREAD_ID and the
specified TID does not exist, pids_lock is acquired but not
released before returning -EINVAL.

Release pids_lock on this error path to avoid leaving the lock
held after timer_create() returns.

Signed-off-by: André Moreira <andrem.33333@gmail.com>
Resolves the TODO in kernel/memory.c by moving the duplicate lock transitions into helper functions.

Signed-off-by: André Moreira <andrem.33333@gmail.com>
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