[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210829055206.137025-1-qiang.zhang@windriver.com>
Date: Sun, 29 Aug 2021 13:52:06 +0800
From: qiang.zhang@...driver.com
To: bristot@...hat.com, rostedt@...dmis.org, bristot@...nel.org,
mingo@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] trace/osnoise: fix missed cpus_read_unlock()
From: "Qiang.zhang" <qiang.zhang@...driver.com>
When start_kthread() return error, the cpus_read_unlock() need
to be called.
Signed-off-by: Qiang.zhang <qiang.zhang@...driver.com>
---
kernel/trace/trace_osnoise.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c
index 65b08b8e5bf8..45d22d6f3acb 100644
--- a/kernel/trace/trace_osnoise.c
+++ b/kernel/trace/trace_osnoise.c
@@ -1568,6 +1568,7 @@ static int start_per_cpu_kthreads(struct trace_array *tr)
retval = start_kthread(cpu);
if (retval) {
stop_per_cpu_kthreads();
+ cpus_read_unlock();
return retval;
}
}
--
2.25.1
Powered by blists - more mailing lists