diff options
| author | Parthasarathy Bhuvaragan <[email protected]> | 2017-08-24 14:31:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-25 04:54:34 +0000 |
| commit | 991ca84daa001193066554fa49f3a934746317d6 (patch) | |
| tree | f245d40d37905357178c4251a136f8ed7f9bb2d4 /net/tipc/node.c | |
| parent | tipc: reassign pointers after skb reallocation / linearization (diff) | |
| download | kernel-991ca84daa001193066554fa49f3a934746317d6.tar.gz kernel-991ca84daa001193066554fa49f3a934746317d6.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
| -rw-r--r-- | net/tipc/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
