perf/arm: Add missing .suppress_bind_attrs
authorRobin Murphy <robin.murphy@arm.com>
Wed, 2 Jul 2025 14:08:13 +0000 (15:08 +0100)
committerWill Deacon <will@kernel.org>
Fri, 4 Jul 2025 17:07:26 +0000 (18:07 +0100)
commit860a831de138a7ad6bc86019adaf10eb84c02655
treee2c359c6119b4b2c3e4979574345cd1e25b3fed7
parenta7bfae21457c3e46d16868c0bc923e509b4a83e2
perf/arm: Add missing .suppress_bind_attrs

PMU drivers should set .suppress_bind_attrs so that userspace is denied
the opportunity to pull the driver out from underneath an in-use PMU
(with predictably unpleasant consequences). Somehow both the CMN and NI
drivers have managed to miss this; put that right.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Link: https://lore.kernel.org/r/acd48c341b33b96804a3969ee00b355d40c546e2.1751465293.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c
drivers/perf/arm-ni.c