We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5615e08 commit 4b6b08fCopy full SHA for 4b6b08f
kernel/trace/trace_osnoise.c
@@ -1548,7 +1548,7 @@ static int start_kthread(unsigned int cpu)
1548
static int start_per_cpu_kthreads(struct trace_array *tr)
1549
{
1550
struct cpumask *current_mask = &save_cpumask;
1551
- int retval;
+ int retval = 0;
1552
int cpu;
1553
1554
cpus_read_lock();
@@ -1568,13 +1568,13 @@ static int start_per_cpu_kthreads(struct trace_array *tr)
1568
retval = start_kthread(cpu);
1569
if (retval) {
1570
stop_per_cpu_kthreads();
1571
- return retval;
+ break;
1572
}
1573
1574
1575
cpus_read_unlock();
1576
1577
- return 0;
+ return retval;
1578
1579
1580
#ifdef CONFIG_HOTPLUG_CPU
0 commit comments