diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-09-18 11:28:04 +0700 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-09-22 13:10:01 +0200 |
| commit | ac4334522e4ba4a3b6710dd5d4cc98092824b8ca (patch) | |
| tree | e4e36964591ae53c93d5a0b345d2cf2bf8ca5b8e /tools/perf/scripts/python | |
| parent | 2d14720beb58870b15a52b236c3ab0be0e06e915 (diff) | |
| download | linux-ac4334522e4ba4a3b6710dd5d4cc98092824b8ca.tar.gz linux-ac4334522e4ba4a3b6710dd5d4cc98092824b8ca.zip | |
net: ethernet: ti: netcp: fix pm_runtime usage counter leak on error
pm_runtime_get_sync() leaves the runtime PM usage counter incremented even
when it fails, but the error path in netcp_probe() does not call
pm_runtime_put_noidle() to balance it, leaking a reference each time
resume fails.
Use pm_runtime_resume_and_get() instead, which automatically drops the
usage counter on failure, fixing the leak.
Fixes: 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260918042804.13101-1-phucduc.bui@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
