tipc: use standard write_lock & unlock functions when creating node
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 11 Apr 2019 19:56:28 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 20:42:35 +0000 (13:42 -0700)
commit909620ff72c8fcf95b6ef1dca850b24bf016dd27
tree1005b00adcc986b88c6ed22ef45f73670d43ce16
parent9e35552ae1eafd666e7388a1a94a321665d2f911
tipc: use standard write_lock & unlock functions when creating node

In the function tipc_node_create() we protect the peer capability field
by using the node rw_lock. However, we access the lock directly instead
of using the dedicated functions for this, as we do everywhere else in
node.c. This cosmetic spot is fixed here.

Fixes: 40999f11ce67 ("tipc: make link capability update thread safe")
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c