[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191216002400.89985-1-jbi.octave@gmail.com>
Date: Mon, 16 Dec 2019 00:24:00 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: bokun.feng@...il.com
Cc: peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...hat.com, namhyung@...nel.org,
linux-kernel@...r.kernel.org, Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH] kernel: events: add releases() notation
Add releases() notation to remove issue detected by sparse
context imbalance in perf_output_end() - unexpected unlock
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/events/ring_buffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 7ffd5c763f93..c8ad63f9faa5 100644
--- a/kernel/events/ring_buffer.c
+++ b/kernel/events/ring_buffer.c
@@ -295,6 +295,7 @@ unsigned int perf_output_skip(struct perf_output_handle *handle,
}
void perf_output_end(struct perf_output_handle *handle)
+ __releases()
{
perf_output_put_handle(handle);
rcu_read_unlock();
--
2.23.0
Powered by blists - more mailing lists