Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c index abe289fc550b..9ca01d1130d5 100644 --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -858,7 +858,7 @@ static void j1939_session_cancel(struct j1939_session *session, /* do not send aborts on incoming broadcasts */ if (!j1939_cb_is_broadcast(&session->skcb)) j1939_xtp_tx_abort(priv, &session->skcb, - !(session->skcb.src_flags & J1939_ECU_LOCAL), + !j1939_tp_im_transmitter(&session->skcb), err, session->skcb.addr.pgn); if (session->sk) -- 2.20.1