[PATCH RESEND] perf: arm_cspmu: fix error handling in arm_cspmu_impl_unregister()
Will Deacon
will at kernel.org
Mon Nov 3 06:57:47 PST 2025
On Wed, 22 Oct 2025 19:53:25 +0800, Ma Ke wrote:
> 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.
>
> [...]
Applied to will (for-next/perf), thanks!
[1/1] perf: arm_cspmu: fix error handling in arm_cspmu_impl_unregister()
https://git.kernel.org/will/c/970e1e41805f
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list