summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2022-03-17 08:57:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-21 20:59:29 +0200
commit08d90846e438ac22dc56fc49ec0b0d195831c5ed (patch)
tree7c9ddc7bd7858bda947d9b1800a60024285c5ffa /Makefile
parent579c8a2e636188588da92323ec34d2a56713b31c (diff)
downloadlinux-08d90846e438ac22dc56fc49ec0b0d195831c5ed.tar.gz
linux-08d90846e438ac22dc56fc49ec0b0d195831c5ed.tar.bz2
linux-08d90846e438ac22dc56fc49ec0b0d195831c5ed.zip
can: m_can: m_can_tx_handler(): fix use after free of skb
commit 2e8e79c416aae1de224c0f1860f2e3350fa171f8 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: 80646733f11c ("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> [sudip: adjust context] Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions