diff options
| author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2014-02-14 16:40:44 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-02-17 00:26:34 -0500 |
| commit | a11607f5a145818e097c64c72c839bcf6907e110 (patch) | |
| tree | 2ecb1489a066f5010de35befe3a0f3ff0a3c80b3 /net/tipc/log.c | |
| parent | 074bb43e9e594bec647ec45cc5bbc8c1ac2306aa (diff) | |
| download | linux-a11607f5a145818e097c64c72c839bcf6907e110.tar.gz linux-a11607f5a145818e097c64c72c839bcf6907e110.tar.bz2 linux-a11607f5a145818e097c64c72c839bcf6907e110.zip | |
tipc: correct usage of spin_lock() vs spin_lock_bh()
I commit e099e86c9e24fe9aff36773600543eb31d8954d
("tipc: add node_lock protection to link lookup function")
we are calling spin_lock(&node->lock) directly instead of indirectly
via the tipc_node_lock(node) function. However, tipc_node_lock() is
using spin_lock_bh(), not spin_lock(), something leading to
unbalanced usage in one place, and a smatch warning.
We fix this by consistently using tipc_node_lock()/unlock() in
in the places touched by the mentioned commit.
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/log.c')
0 files changed, 0 insertions, 0 deletions
