aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorHoang Le <[email protected]>2019-02-11 02:18:28 +0000
committerDavid S. Miller <[email protected]>2019-02-12 02:35:52 +0000
commit7384b538d3aed2ed49d3575483d17aeee790fb06 (patch)
tree1d3c7deb0a11aa4beb9817b2452df97f0a1d4bf1 /net/tipc/node.c
parentnet/x25: do not hold the cpu too long in x25_new_lci() (diff)
downloadkernel-7384b538d3aed2ed49d3575483d17aeee790fb06.tar.gz
kernel-7384b538d3aed2ed49d3575483d17aeee790fb06.zip
tipc: fix skb may be leaky in tipc_link_input
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, <snip> 1303 int tipc_link_rcv: ... 1354 if (!tipc_data_input(l, skb, l->inputq)) 1355 rc |= tipc_link_input(l, skb, l->inputq); </snip> Fix it by simple changing to a 'true' boolean when skb is being free-ed. Then, tipc_link_rcv will bypassed to subcalling tipc_link_input as above condition. Acked-by: Ying Xue <[email protected]> Acked-by: Jon Maloy <[email protected]> Signed-off-by: Hoang Le <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions