linux-uconsole/drivers/net/can/m_can
Marc Kleine-Budde 869016a293 can: m_can: m_can_tx_handler(): fix use after free of skb
commit 2e8e79c416 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:40:44 +02:00
..
Kconfig
m_can.c can: m_can: m_can_tx_handler(): fix use after free of skb 2022-04-08 14:40:44 +02:00
m_can.h can: m_can: m_can_class_free_dev(): introduce new function 2020-11-15 18:33:42 +01:00
m_can_platform.c can: m_can: Fix freeing of can device from peripherials 2020-11-15 18:33:45 +01:00
Makefile
tcan4x5x.c can: tcan4x5x: fix max register value 2021-04-07 15:00:07 +02:00