Re: [PATCH] HID: asus: Add check for cancelling fn_lock_sync_work

From: Jiri Kosina

Date: Mon Feb 02 2026 - 15:52:13 EST


On Fri, 30 Jan 2026, Sahil Chandna wrote:

> syzbot reported a workqueue warning where fn_lock_sync_work is cancelled
> during device removal before the work has been initialized. This can
> happen when the device is disconnected while initialization is still
> in progress.
> Fix this by initializing fn_lock_sync_work before marking fn_lock as
> enabled, and by using fn_lock as a flag in the remove path. This
> ensures cancel_work_sync() is only called for initialized work.
>
> Fixes: f631011e36b8 ("HID: hid-asus: Implement fn lock for Asus ProArt P16")
> Reported-by: syzbot+13f8286fa2de04a7cd48@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Sahil Chandna <chandna.sahil@xxxxxxxxx>

Applied to hid.git#for-6.20/asus, thanks.

--
Jiri Kosina
SUSE Labs