mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
can: j1939: transport: j1939_session_fresh_new(): make sure EOMA is send with the total message size set
We were sending malformed EOMA messageswith total message size set to 0. This patch fixes the bug. Reported-by: https://github.com/linux-can/can-utils/issues/159 Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Acked-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
896daf723c
commit
eaa654f164
@ -1432,7 +1432,7 @@ j1939_session *j1939_session_fresh_new(struct j1939_priv *priv,
|
||||
skcb = j1939_skb_to_cb(skb);
|
||||
memcpy(skcb, rel_skcb, sizeof(*skcb));
|
||||
|
||||
session = j1939_session_new(priv, skb, skb->len);
|
||||
session = j1939_session_new(priv, skb, size);
|
||||
if (!session) {
|
||||
kfree_skb(skb);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user