Commit 39be7b21 authored by Bart Van Assche's avatar Bart Van Assche Committed by Peter Zijlstra
Browse files

signal: Fix the lock_task_sighand() annotation



lock_task_sighand() may return NULL. Make this clear in its lock context
annotation.

Fixes: 04e49d92 ("sched: Enable context analysis for core.c and fair.c")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarMarco Elver <elver@google.com>
Link: https://patch.msgid.link/20260225183244.4035378-3-bvanassche@acm.org
parent 38e18d82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -739,7 +739,7 @@ static inline int thread_group_empty(struct task_struct *p)

extern struct sighand_struct *lock_task_sighand(struct task_struct *task,
						unsigned long *flags)
	__acquires(&task->sighand->siglock);
	__cond_acquires(nonnull, &task->sighand->siglock);

static inline void unlock_task_sighand(struct task_struct *task,
						unsigned long *flags)