[PATCH v1 08/17] j1939: transport: return proper error on skb underrun.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux