diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-02-25 10:32:42 -0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-02-27 16:40:19 +0100 |
| commit | 39be7b21af24d1d2ed3b18caac57dd219fef226e (patch) | |
| tree | 80e52f3100aae09585539085aa75367eb9f83ef6 /include | |
| parent | 38e18d825f7281fdc16d3241df5115ce6eaeaf79 (diff) | |
| download | linux-39be7b21af24d1d2ed3b18caac57dd219fef226e.tar.gz linux-39be7b21af24d1d2ed3b18caac57dd219fef226e.zip | |
signal: Fix the lock_task_sighand() annotation
lock_task_sighand() may return NULL. Make this clear in its lock context
annotation.
Fixes: 04e49d926f43 ("sched: Enable context analysis for core.c and fair.c")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/20260225183244.4035378-3-bvanassche@acm.org
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched/signal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index a22248aebcf9..a4835a7de07e 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h @@ -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) |
