perf: Fix the nr_addr_filters fix
authorPeter Zijlstra <peterz@infradead.org>
Wed, 22 Nov 2023 10:07:56 +0000 (11:07 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 23 Nov 2023 15:08:31 +0000 (16:08 +0100)
commit388a1fb7da6aaa1970c7e2a7d7fcd983a87a8484
tree69443ff91c3445fb988d4e592754d80b22fa5e2a
parentbbb968696d0f3442ab823598def3b756cf4735c6
perf: Fix the nr_addr_filters fix

Thomas reported that commit 652ffc2104ec ("perf/core: Fix narrow
startup race when creating the perf nr_addr_filters sysfs file") made
the entire attribute group vanish, instead of only the nr_addr_filters
attribute.

Additionally a stray return.

Insufficient coffee was involved with both writing and merging the
patch.

Fixes: 652ffc2104ec ("perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file")
Reported-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Link: https://lkml.kernel.org/r/20231122100756.GP8262@noisy.programming.kicks-ass.net
kernel/events/core.c