diff options
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r-- | net/tipc/bearer.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index a38c89969c68..a3bdf5c7f085 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -350,19 +350,10 @@ exit: | |||
350 | */ | 350 | */ |
351 | static int tipc_reset_bearer(struct tipc_bearer *b_ptr) | 351 | static int tipc_reset_bearer(struct tipc_bearer *b_ptr) |
352 | { | 352 | { |
353 | struct tipc_link *l_ptr; | ||
354 | struct tipc_link *temp_l_ptr; | ||
355 | |||
356 | read_lock_bh(&tipc_net_lock); | 353 | read_lock_bh(&tipc_net_lock); |
357 | pr_info("Resetting bearer <%s>\n", b_ptr->name); | 354 | pr_info("Resetting bearer <%s>\n", b_ptr->name); |
358 | spin_lock_bh(&b_ptr->lock); | 355 | spin_lock_bh(&b_ptr->lock); |
359 | list_for_each_entry_safe(l_ptr, temp_l_ptr, &b_ptr->links, link_list) { | 356 | tipc_link_reset_list(b_ptr); |
360 | struct tipc_node *n_ptr = l_ptr->owner; | ||
361 | |||
362 | spin_lock_bh(&n_ptr->lock); | ||
363 | tipc_link_reset(l_ptr); | ||
364 | spin_unlock_bh(&n_ptr->lock); | ||
365 | } | ||
366 | spin_unlock_bh(&b_ptr->lock); | 357 | spin_unlock_bh(&b_ptr->lock); |
367 | read_unlock_bh(&tipc_net_lock); | 358 | read_unlock_bh(&tipc_net_lock); |
368 | return 0; | 359 | return 0; |