2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-05 20:24:09 +08:00
linux-next/drivers/net/can/m_can
Marc Kleine-Budde 2e8e79c416 can: m_can: m_can_tx_handler(): fix use after free of skb
can_put_echo_skb() will clone skb then free the skb. Move the
can_put_echo_skb() for the m_can version 3.0.x directly before the
start of the xmit in hardware, similar to the 3.1.x branch.

Fixes: 80646733f1 ("can: m_can: update to support CAN FD features")
Link: https://lore.kernel.org/all/20220317081305.739554-1-mkl@pengutronix.de
Cc: stable@vger.kernel.org
Reported-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-03-31 09:55:27 +02:00
..
Kconfig can: m_can: add PCI glue driver for Intel Elkhart Lake 2020-12-10 10:40:10 +01:00
m_can_pci.c can: m_can: pci: use custom bit timings for Elkhart Lake 2021-12-07 09:51:41 +01:00
m_can_platform.c can: m_can: fix iomap_read_fifo() and iomap_write_fifo() 2021-10-17 22:51:43 +02:00
m_can.c can: m_can: m_can_tx_handler(): fix use after free of skb 2022-03-31 09:55:27 +02:00
m_can.h can: m_can: make custom bittiming fields const 2021-12-07 09:51:41 +01:00
Makefile can: tcan4x5x: move regmap code into seperate file 2021-01-06 15:15:37 +01:00
tcan4x5x-core.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
tcan4x5x-regmap.c can: tcan4x5x: regmap: fix max register value 2022-01-24 18:27:43 +01:00
tcan4x5x.h can: tcan4x5x: remove duplicate include of regmap.h 2021-03-30 11:14:48 +02:00