diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-10-08 23:23:10 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-10-08 23:28:09 +0200 |
commit | 13ba4c434422837d7c8c163f9c8d854e67bf3c99 (patch) | |
tree | 0520eb8dff75cb27100818a47f7fa2bd612a6e96 /net/can | |
parent | e009f95b1543e26606dca2f7e6e9f0f9174538e5 (diff) | |
download | linux-stable-13ba4c434422837d7c8c163f9c8d854e67bf3c99.tar.gz linux-stable-13ba4c434422837d7c8c163f9c8d854e67bf3c99.tar.bz2 linux-stable-13ba4c434422837d7c8c163f9c8d854e67bf3c99.zip |
net: j1939: j1939_session_fresh_new(): fix missing initialization of skbcnt
This patch add the initialization of skbcnt, similar to:
e009f95b1543 can: j1935: j1939_tp_tx_dat_new(): fix missing initialization of skbcnt
Let's play save and initialize this skbcnt as well.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/j1939/transport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c index 88cf1062e1e9..e09d087ba240 100644 --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -1488,6 +1488,7 @@ j1939_session *j1939_session_fresh_new(struct j1939_priv *priv, skb->dev = priv->ndev; can_skb_reserve(skb); can_skb_prv(skb)->ifindex = priv->ndev->ifindex; + can_skb_prv(skb)->skbcnt = 0; skcb = j1939_skb_to_cb(skb); memcpy(skcb, rel_skcb, sizeof(*skcb)); |