Re: [PATCH kernel-next] tracing: Fix uninitialized variable in tracing_set_tracer()

2025-01-07 Thread Steven Rostedt
On Tue, 7 Jan 2025 18:29:20 +0530 Dheeraj Reddy Jonnalagadda wrote: > Fix an issue in the tracing_set_tracer() where the variable ret could > be used uninitialized under certain conditions. Specifically, when > t->use_max_tr is true but tr->cond_snapshot is false, the code would > check the valu

[PATCH kernel-next] tracing: Fix uninitialized variable in tracing_set_tracer()

2025-01-07 Thread Dheeraj Reddy Jonnalagadda
Fix an issue in the tracing_set_tracer() where the variable ret could be used uninitialized under certain conditions. Specifically, when t->use_max_tr is true but tr->cond_snapshot is false, the code would check the value of ret without first initializing it. Fixes: a35873a0993b ("tracing: Add con