[PATCH] batman-adv: Fix orig node refcnt leak when creating neigh node

2020-09-17 Thread Xiyu Yang
of orig_node object during the initialization and adding corresponding batadv_orig_node_put() in batadv_neigh_node_release(). Signed-off-by: Xiyu Yang Signed-off-by: Xin Tan --- net/batman-adv/originator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/batman-adv/originator.c b/net

[PATCH] ipv6: Fix nexthop refcnt leak when creating ipv6 route info

2020-07-25 Thread Xiyu Yang
routing. Signed-off-by: Xiyu Yang Signed-off-by: Xin Tan --- net/ipv6/route.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 82cbb46a2a4f..427ecd7032bd 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3682,14 +3682

[PATCH] sctp: Fix sk_buff leak when receiving a datagram

2020-06-13 Thread Xiyu Yang
f the "skb" object and directly return it, causing a potential memory leak in the caller function. Fix this issue by calling refcount_inc after __skb_dequeue() successfully executed. Signed-off-by: Xiyu Yang Signed-off-by: Xin Tan --- net/sctp/socket.c | 2 ++ 1 file changed, 2 insertions(

[PATCH] SUNRPC: Remove unreachable error condition in rpcb_getport_async()

2020-05-25 Thread Xiyu Yang
rpcb_getport_async() invokes rpcb_call_async(), which return the value of rpc_run_task() to "child". Since rpc_run_task() is impossible to return an ERR pointer, there is no need to add the IS_ERR() condition on "child" here. So we need to remove it. Signed-off-by: Xiyu Yang