]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a938e42427405d5d98a3e8d409c866a1e315082
tree612716949497835537f318a836fbd4f2490a0951
parente3cd1f98937d8f7c0745b1ed8729c958f83ec399
tipc: fix node reference count bug

Commit 7652bc74efe5551d ("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