Re: [PATCH] HID: logitech-hidpp: cancel reset_hi_res_work on probe failure
From: Jiri Kosina
Date: Fri Oct 16 2026 - 06:10:38 EST
On Mon, 24 Aug 2026, Dmitriy Geels wrote:
> The probe error path cancels hidpp->work before freeing the HID++ device
> data, but does not cancel reset_hi_res_work.
>
> reset_hi_res_work can be scheduled while probing the device. If probe
> subsequently fails, the work can run after the driver data has been
> freed.
>
> Cancel reset_hi_res_work in the probe error path to prevent a potential
> use-after-free.
>
> Fixes: ed80cc4667ac ("HID: logitech-hidpp: Add HIDPP_QUIRK_RESET_HI_RES_SCROLL")
>
> Signed-off-by: Dmitriy Geels <dmitriy.geels@xxxxxxxxx>
Applied to hid.git#for-7.3/upstream-fixes, thanks.
--
Jiri Kosina
SUSE Labs