Re: [net] tipc: fix skb may be leaky in tipc_link_input

2019-02-11 Thread David Miller
From: Hoang Le Date: Mon, 11 Feb 2019 09:18:28 +0700 > When we free skb at tipc_data_input, we return a 'false' boolean. > Then, skb passed to subcalling tipc_link_input in tipc_link_rcv, > > > 1303 int tipc_link_rcv: > ... > 1354if (!tipc_data_input(l, skb, l->inputq)) > 1355rc |=

[net] tipc: fix skb may be leaky in tipc_link_input

2019-02-10 Thread Hoang Le
When we free skb at tipc_data_input, we return a 'false' boolean. Then, skb passed to subcalling tipc_link_input in tipc_link_rcv, 1303 int tipc_link_rcv: ... 1354if (!tipc_data_input(l, skb, l->inputq)) 1355rc |= tipc_link_input(l, skb, l->inputq); Fix it by simple changing to a 't