OpenCloudOS-Kernel/drivers/net/can/usb
Marc Kleine-Budde 50d34a0d15 can: gs_usb: gs_make_candev(): fix memory leak for devices with extended bit timing configuration
Some CAN-FD capable devices offer extended bit timing information for
the data bit timing. The information must be read with an USB control
message. The memory for this message is allocated but not free()ed (in
the non error case). This patch adds the missing free.

Fixes: 6679f4c5e5 ("can: gs_usb: add extended bt_const feature")
Link: https://lore.kernel.org/all/20220329193450.659726-1-mkl@pengutronix.de
Reported-by: syzbot+4d0ae90a195b269f102d@syzkaller.appspotmail.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-03-31 09:55:27 +02:00
..
etas_es58x can: etas_es58x: es58x_fd_rx_event_msg(): initialize rx_event_msg before calling es58x_check_msg_len() 2022-03-10 09:23:45 +01:00
kvaser_usb can: kvaser_usb: kvaser_usb_send_cmd(): remove redundant variable actual_len 2022-02-24 08:26:04 +01:00
peak_usb can: do not increase tx_bytes statistics for RTR frames 2022-01-05 12:09:05 +01:00
Kconfig can: kvaser_usb: Add new Kvaser hydra devices 2021-05-27 09:42:23 +02:00
Makefile can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces 2021-04-13 10:15:42 +02:00
ems_usb.c can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path 2022-03-31 09:55:27 +02:00
esd_usb2.c can: do not increase tx_bytes statistics for RTR frames 2022-01-05 12:09:05 +01:00
gs_usb.c can: gs_usb: gs_make_candev(): fix memory leak for devices with extended bit timing configuration 2022-03-31 09:55:27 +02:00
mcba_usb.c can: mcba_usb: properly check endpoint type 2022-03-31 09:55:27 +02:00
ucan.c can: ucan: fix typos in comments 2022-03-16 21:41:40 +01:00
usb_8dev.c can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path 2022-03-31 09:55:27 +02:00