summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdnsp-ring.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-12-15 16:44:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-31 13:26:51 +0100
commita6445a50419591e7c219700bb14feddc5a7fed5c (patch)
tree470b570fe6d86ab8441a1a4a3477ac8c49191c9e /drivers/usb/cdns3/cdnsp-ring.c
parent4a7c2771461a73c297791ea8d02bd7c7700a5421 (diff)
HID: logitech-hidpp: Guard FF init code against non-USB devices
commit 0e13e7b448005612972eae36c0f698c21d1e2f8a upstream. 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. Cc: stable@vger.kernel.org # v5.16+ Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/20221215154416.111704-1-hadess@hadess.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-ring.c')
0 files changed, 0 insertions, 0 deletions