From: Parthasarathy Bhuvaragan Date: Thu, 24 Aug 2017 14:31:24 +0000 (+0200) Subject: tipc: context imbalance at node read unlock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=991ca84daa001193066554fa49f3a934746317d6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tipc: context imbalance at node read unlock If we fail to find a valid bearer in tipc_node_get_linkname(), node_read_unlock() is called without holding the node read lock. This commit fixes this error. Signed-off-by: Parthasarathy Bhuvaragan Signed-off-by: David S. Miller --- diff --git a/net/tipc/node.c b/net/tipc/node.c index b113a52f8914..7dd22330a6b4 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -1126,8 +1126,8 @@ int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 addr, strncpy(linkname, tipc_link_name(link), len); err = 0; } -exit: tipc_node_read_unlock(node); +exit: tipc_node_put(node); return err; }