tipc: fix node reference count bug
authorJon Paul Maloy <jon.maloy@ericsson.com>
Wed, 2 Dec 2015 20:19:37 +0000 (15:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:19:40 +0000 (15:19 -0500)
commitdc8d1eb305984b1182f5e85de3c3a1f8592b83af
tree612716949497835537f318a836fbd4f2490a0951
parentb69e3c6f71a53fb46bba588e651d943785398220
tipc: fix node reference count bug

Commit 5405ff6e15f40f2f ("tipc: convert node lock to rwlock")
introduced a bug to the node reference counter handling. When a
message is successfully sent in the function tipc_node_xmit(),
we return directly after releasing the node lock, instead of
continuing and decrementing the node reference counter as we
should do.

This commit fixes this bug.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c