[PATCH stalld 47/52] stalld: remove NULL deref in fill_waiting_task error handler
Wander Lairson Costa <[email protected]> Mon, 8 Jun 2026 15:31:57 -0300
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
The defensive NULL check for cpu_info in fill_waiting_task() dereferences the pointer it just determined to be NULL by assigning cpu_info->starving = NULL. Remove the dead store so the error path returns cleanly without faulting. Signed-off-by: Wander Lairson Costa <[email protected]> --- src/sched_debug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sched_debug.c b/src/sched_debug.c index 5ddc331..f481bb2 100644 --- a/src/sched_debug.c +++ b/src/sched_debug.c @@ -526,7 +526,6 @@ static int fill_waiting_task(char *buffer, struct cpu_info *cpu_info) if (cpu_info == NULL) { warn("NULL cpu_info pointer!\n"); - cpu_info->starving = NULL; return 0; } -- 2.54.0