diff options
author | Stephane Grosjean <stephane.grosjean@hms-networks.com> | 2025-07-24 10:13:19 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2025-07-25 12:09:19 +0200 |
commit | 788199b73b6efe4ee2ade4d7457b50bb45493488 (patch) | |
tree | e05cd6c304ab31a65ffa462c877901a724582126 /net/unix/af_unix.c | |
parent | c8f13134349b4385ae739f1efe403d5d3949ef92 (diff) |
can: peak_usb: fix USB FD devices potential malfunction
The latest firmware versions of USB CAN FD interfaces export the EP numbers
to be used to dialog with the device via the "type" field of a response to
a vendor request structure, particularly when its value is greater than or
equal to 2.
Correct the driver's test of this field.
Fixes: 4f232482467a ("can: peak_usb: include support for a new MCU")
Signed-off-by: Stephane Grosjean <stephane.grosjean@hms-networks.com>
Link: https://patch.msgid.link/20250724081550.11694-1-stephane.grosjean@free.fr
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
[mkl: rephrase commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions