]> git.baikalelectronics.ru Git - kernel.git/commit
can: j1939: transport: j1939_xtp_rx_eoma_one(): Add sanity check for correct total...
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 25 Oct 2019 13:04:13 +0000 (15:04 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:23 +0000 (21:47 +0100)
commit1d0d9b99d9e1425e57f201ba4f839397d88b7714
tree0d28fc8b61d1e3a0f547107450ad6ff6e54c9eef
parent1e666f850467875bf25013202e8cc8665e5d58ea
can: j1939: transport: j1939_xtp_rx_eoma_one(): Add sanity check for correct total message size

We were sending malformed EOMA with total message size set to 0. This
issue has been fixed in the previous patch.

In this patch a sanity check is added to the RX path and a error message
is displayed.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/j1939/transport.c