diff options
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/name_table.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c index bd80d80fb112..5d7004262647 100644 --- a/net/tipc/name_table.c +++ b/net/tipc/name_table.c | |||
| @@ -695,11 +695,12 @@ struct publication *tipc_nametbl_publish(u32 type, u32 lower, u32 upper, | |||
| 695 | } | 695 | } |
| 696 | 696 | ||
| 697 | write_lock_bh(&tipc_nametbl_lock); | 697 | write_lock_bh(&tipc_nametbl_lock); |
| 698 | table.local_publ_count++; | ||
| 699 | publ = tipc_nametbl_insert_publ(type, lower, upper, scope, | 698 | publ = tipc_nametbl_insert_publ(type, lower, upper, scope, |
| 700 | tipc_own_addr, port_ref, key); | 699 | tipc_own_addr, port_ref, key); |
| 701 | if (likely(publ)) | 700 | if (likely(publ)) { |
| 701 | table.local_publ_count++; | ||
| 702 | tipc_named_publish(publ); | 702 | tipc_named_publish(publ); |
| 703 | } | ||
| 703 | write_unlock_bh(&tipc_nametbl_lock); | 704 | write_unlock_bh(&tipc_nametbl_lock); |
| 704 | return publ; | 705 | return publ; |
| 705 | } | 706 | } |
