linux/drivers/net/can/usb
Celeste Liu a12f0bc764 can: gs_usb: gs_make_candev(): populate net_device->dev_port
The gs_usb driver supports USB devices with more than 1 CAN channel.
In old kernel before 3.15, it uses net_device->dev_id to distinguish
different channel in userspace, which was done in commit
acff76fa45 ("can: gs_usb: gs_make_candev(): set netdev->dev_id").
But since 3.15, the correct way is populating net_device->dev_port.
And according to documentation, if network device support multiple
interface, lack of net_device->dev_port SHALL be treated as a bug.

Fixes: acff76fa45 ("can: gs_usb: gs_make_candev(): set netdev->dev_id")
Cc: stable@vger.kernel.org
Signed-off-by: Celeste Liu <uwu@coelacanthus.name>
Link: https://patch.msgid.link/20250930-gs-usb-populate-net_device-dev_port-v1-1-68a065de6937@coelacanthus.name
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-10-08 10:15:46 +02:00
..
etas_es58x can: etas_es58x: populate ndo_change_mtu() to prevent buffer overflow 2025-09-19 19:03:01 +02:00
kvaser_usb can: kvaser_usb: Add devlink port support 2025-07-25 18:01:22 +02:00
peak_usb linux-can-next-for-6.18-20250924 2025-09-26 14:46:59 -07:00
Kconfig can: Add Nuvoton NCT6694 CANFD support 2025-09-16 14:41:57 +01:00
Makefile can: Add Nuvoton NCT6694 CANFD support 2025-09-16 14:41:57 +01:00
ems_usb.c can: ems_usb: ems_usb_rx_err(): fix {rx,tx}_errors statistics 2024-11-26 10:51:06 +01:00
esd_usb.c can: esd_usb: Avoid errors triggered from USB disconnect 2025-09-19 20:03:47 +02:00
f81604.c can: f81604: f81604_handle_can_bus_errors(): fix {rx,tx}_errors statistics 2024-11-26 10:51:12 +01:00
gs_usb.c can: gs_usb: gs_make_candev(): populate net_device->dev_port 2025-10-08 10:15:46 +02:00
mcba_usb.c can: mcba_usb: populate ndo_change_mtu() to prevent buffer overflow 2025-09-19 19:03:01 +02:00
nct6694_canfd.c can: Add Nuvoton NCT6694 CANFD support 2025-09-16 14:41:57 +01:00
ucan.c can: ucan: fix out of bound read in strscpy() source 2025-03-14 09:44:54 +01:00
usb_8dev.c