diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-11-08 06:45:47 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-11-08 23:23:30 -0800 |
| commit | f5f8cc539f8b2bd5324c03dfce8cca57284653e6 (patch) | |
| tree | ab4c1af37b0e763f9a6042525263234e2318275c /tools/perf/scripts/python | |
| parent | b3249e446d47c65dc09611705ad4d0a7587405ac (diff) | |
Input: cyapa - fix runtime PM leak in cyapa_update_rt_suspend_scanrate()
pm_runtime_get_sync() unconditionally increments the runtime PM usage
counter. If mutex_lock_interruptible() is interrupted, the function
returns without dropping that reference, so the usage count stays
elevated for as long as the driver is bound and the device can no longer
be autosuspended. Drop the reference on the error path.
Use pm_runtime_put_autosuspend() rather than the synchronous variant
there: nothing has been done to the device on this path, so there is
nothing to wait for, and with the 2 s autosuspend delay the driver
configures the put only arms the autosuspend timer instead of suspending
the device.
Fixes: 672865080a8f ("Input: cyapa - add runtime power management support")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/1794120347.2701234.vulab@iscas.ac.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
