Skip to content

time: unlock pids_lock before returning from timer_create - #2788

Open
Andrezinrc wants to merge 1 commit into
ish-app:masterfrom
Andrezinrc:fix-timer-create-lock
Open

time: unlock pids_lock before returning from timer_create#2788
Andrezinrc wants to merge 1 commit into
ish-app:masterfrom
Andrezinrc:fix-timer-create-lock

Conversation

@Andrezinrc

Copy link
Copy Markdown

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.

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>
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