diff options
author | James Clark <james.clark@arm.com> | 2023-04-25 17:35:40 +0300 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2023-06-05 17:46:47 +0300 |
commit | 1b5b1646e63d5ce43469e00680b8c1a3a1e034cd (patch) | |
tree | 76873ae39450e4d52bef56f1524e612bf97b87eb /fs | |
parent | 6148652807ba89b0c9af05ebed3e005b626f90eb (diff) | |
download | linux-1b5b1646e63d5ce43469e00680b8c1a3a1e034cd.tar.xz |
coresight: Fix CTI module refcount leak by making it a helper device
The CTI module has some hard coded refcounting code that has a leak.
For example running perf and then trying to unload it fails:
perf record -e cs_etm// -a -- ls
rmmod coresight_cti
rmmod: ERROR: Module coresight_cti is in use
The coresight core already handles references of devices in use, so by
making CTI a normal helper device, we get working refcounting for free.
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230425143542.2305069-14-james.clark@arm.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions