summaryrefslogtreecommitdiff
path: root/tools/docs/parse-headers.py
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2025-10-22 19:53:25 +0800
committerWill Deacon <will@kernel.org>2025-11-03 14:20:03 +0000
commit970e1e41805f0bd49dc234330a9390f4708d097d (patch)
tree185fb7d8af280b36e9c47f5a29ad883370f60fc3 /tools/docs/parse-headers.py
parent8fa08f8835e57e1fd5e2994c9cf76c84dadc1235 (diff)
perf: arm_cspmu: fix error handling in arm_cspmu_impl_unregister()
driver_find_device() calls get_device() to increment the reference count once a matching device is found. device_release_driver() releases the driver, but it does not decrease the reference count that was incremented by driver_find_device(). At the end of the loop, there is no put_device() to balance the reference count. To avoid reference count leakage, add put_device() to decrease the reference count. Found by code review. Cc: stable@vger.kernel.org Fixes: bfc653aa89cb ("perf: arm_cspmu: Separate Arm and vendor module") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions