Re: [PATCH] HID: logitech-hidpp: Guard FF init code against non-USB devices

From: Benjamin Tissoires
Date: Mon Dec 19 2022 - 09:07:12 EST


On Thu, Dec 15, 2022 at 4:44 PM Bastien Nocera <hadess@xxxxxxxxxx> wrote:
>
> The Force Feedback code assumes that all the devices passed to it will
> be USB devices, but that might not be the case for emulated devices.
> Guard against a crash by checking the device type before poking at USB
> properties.
>
> Reported-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
> Signed-off-by: Bastien Nocera <hadess@xxxxxxxxxx>
> ---

I have added cc: stable, and applied to for-6.2/upstream-fixes

Thanks,
Benjamin