diff mbox series

[net,2/4] can: j1939: cancel rxtimer on multipacket broadcast session complete

Message ID 1596599425-5534-3-git-send-email-zhangchangzhong@huawei.com
State Awaiting Upstream
Delegated to: David Miller
Headers show
Series support multipacket broadcast message | expand

Commit Message

Zhang Changzhong Aug. 5, 2020, 3:50 a.m. UTC
If j1939_xtp_rx_dat_one() receive last frame of multipacket broadcast
message, j1939_session_timers_cancel() should be called to cancel

Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
 net/can/j1939/transport.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index e5188ac..dd6a120 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1788,6 +1788,7 @@  static void j1939_xtp_rx_dat_one(struct j1939_session *session,
 	if (final) {
+		j1939_session_timers_cancel(session);
 	} else if (do_cts_eoma) {
 		j1939_tp_set_rxtimeout(session, 1250);