If we have a session between two local sockets we are always im_transmitter() 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 dd8692f507fc..2a167f7807bc 100644 --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -1322,7 +1322,7 @@ static int j1939_xtp_rx_rts_session_active(struct j1939_session *session, struct j1939_sk_buff_cb *skcb = j1939_skb_to_cb(skb); struct j1939_priv *priv = session->priv; - if (!j1939_tp_im_transmitter(skcb)) { + if (j1939_tp_im_receiver(skcb)) { if (j1939_xtp_rx_cmd_bad_pgn(session, skb)) return -EBUSY; -- 2.20.1