summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-11-08 06:45:47 +0000
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-11-08 23:23:30 -0800
commitf5f8cc539f8b2bd5324c03dfce8cca57284653e6 (patch)
treeab4c1af37b0e763f9a6042525263234e2318275c /tools/perf/scripts/python
parentb3249e446d47c65dc09611705ad4d0a7587405ac (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