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 777a78c95110..1052658091dd 100644 --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -791,7 +791,7 @@ static int j1939_tp_txnext(struct j1939_session *session) se_skb = j1939_session_skb_find(session); if (!se_skb) - break; + return -EPIPE; skcb = j1939_skb_to_cb(se_skb); tpdat = se_skb->data; -- 2.20.1