]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: context imbalance at node read unlock
authorParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Thu, 24 Aug 2017 14:31:24 +0000 (16:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 04:54:34 +0000 (21:54 -0700)
commit9e6aaac2730670e883b27711c81b9586af43368c
treef245d40d37905357178c4251a136f8ed7f9bb2d4
parent6c7a2cd37aee19579dd6e8350304234d7b1dca39
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>
net/tipc/node.c