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)
commit688d11c38423fd98ab6c8d5fc1976c8f365fc875
tree0d28fc8b61d1e3a0f547107450ad6ff6e54c9eef
parenteaa654f164ba9acd5656e6485eeb5e73da8bfc3e
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