perf/core: Fix unlock balance in perf_init_event()
authorQian Cai <cai@lca.pw>
Wed, 6 Nov 2019 05:29:35 +0000 (00:29 -0500)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2019 10:06:13 +0000 (11:06 +0100)
commitdeb0c3c29d552ab81ecd5481bb83bf2f4e41927d
tree2e6054b53e8fc569410b6748e4569d1b833be7b4
parentfed4c9c68131ebee516471527589821fe7a8ce53
perf/core: Fix unlock balance in perf_init_event()

Commit:

  66d258c5b048 ("perf/core: Optimize perf_init_event()")

introduced an unlock imbalance in perf_init_event() where it calls
"goto again" and then only repeat rcu_read_unlock().

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Fixes: 66d258c5b048 ("perf/core: Optimize perf_init_event()")
Link: https://lkml.kernel.org/r/20191106052935.8352-1-cai@lca.pw
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c