]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: corsair-void: Update power supply values with a unified work handler
authorStuart Hayhurst <stuart.a.hayhurst@gmail.com>
Thu, 13 Feb 2025 13:38:49 +0000 (13:38 +0000)
committerJiri Kosina <jkosina@suse.com>
Tue, 18 Feb 2025 20:21:05 +0000 (21:21 +0100)
commit0c28e4d1e10d2aae608094620bb386e6fd73d55e
tree45de5c08c7fd2b341a0aea2108efb9afcfbca154
parentb051ffa2aeb2a60e092387b6fb2af1ad42f51a3c
HID: corsair-void: Update power supply values with a unified work handler

corsair_void_process_receiver can be called from an interrupt context,
locking battery_mutex in it was causing a kernel panic.
Fix it by moving the critical section into its own work, sharing this
work with battery_add_work and battery_remove_work to remove the need
for any locking

Closes: https://bugzilla.suse.com/show_bug.cgi?id=1236843
Fixes: 6ea2a6fd3872 ("HID: corsair-void: Add Corsair Void headset family driver")
Cc: stable@vger.kernel.org
Signed-off-by: Stuart Hayhurst <stuart.a.hayhurst@gmail.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-corsair-void.c