mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
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 <parthasarathy.bhuvaragan@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
60d1d93664
commit
991ca84daa
1 changed files with 1 additions and 1 deletions
|
@ -1126,8 +1126,8 @@ int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 addr,
|
||||||
strncpy(linkname, tipc_link_name(link), len);
|
strncpy(linkname, tipc_link_name(link), len);
|
||||||
err = 0;
|
err = 0;
|
||||||
}
|
}
|
||||||
exit:
|
|
||||||
tipc_node_read_unlock(node);
|
tipc_node_read_unlock(node);
|
||||||
|
exit:
|
||||||
tipc_node_put(node);
|
tipc_node_put(node);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue