]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: j1939: j1939_session_fresh_new(): fix missing initialization of skbcnt
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 8 Oct 2020 21:23:10 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:07:02 +0000 (10:07 +0100)
commit7ef2b9748f88670252cc13f6d928d9c6bbfbc3ef
tree858b112cf1caaa0b704a3184443d645439bc0046
parent3cda27a6e54027b1b50fbeda529e3cbc8099798d
net: j1939: j1939_session_fresh_new(): fix missing initialization of skbcnt

[ Upstream commit 13ba4c434422837d7c8c163f9c8d854e67bf3c99 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/can/j1939/transport.c