diff options
author | Thomas Zeitlhofer <thomas.zeitlhofer+lkml@ze-it.at> | 2025-05-19 10:54:46 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-06-11 00:27:10 +0200 |
commit | f3054152c12e2eed1e72704aff47b0ea58229584 (patch) | |
tree | 5d176e816ff48c871a83250da5ec957ff94a79d9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5cdb49a680b45f467e9d915c0e74756bc0c67c57 (diff) |
HID: wacom: fix crash in wacom_aes_battery_handler()
Commit fd2a9b29dc9c ("HID: wacom: Remove AES power_supply after extended
inactivity") introduced wacom_aes_battery_handler() which is scheduled
as a delayed work (aes_battery_work).
In wacom_remove(), aes_battery_work is not canceled. Consequently, if
the device is removed while aes_battery_work is still pending, then hard
crashes or "Oops: general protection fault..." are experienced when
wacom_aes_battery_handler() is finally called. E.g., this happens with
built-in USB devices after resume from hibernate when aes_battery_work
was still pending at the time of hibernation.
So, take care to cancel aes_battery_work in wacom_remove().
Fixes: fd2a9b29dc9c ("HID: wacom: Remove AES power_supply after extended inactivity")
Signed-off-by: Thomas Zeitlhofer <thomas.zeitlhofer+lkml@ze-it.at>
Acked-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions