diff options
Diffstat (limited to 'net/tipc/bcast.c')
-rw-r--r-- | net/tipc/bcast.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 47bb07aac16c..95ab5ef92920 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -41,9 +41,9 @@ | |||
41 | #include "bcast.h" | 41 | #include "bcast.h" |
42 | #include "name_distr.h" | 42 | #include "name_distr.h" |
43 | 43 | ||
44 | #define MAX_PKT_DEFAULT_MCAST 1500 /* bcast link max packet size (fixed) */ | 44 | #define MAX_PKT_DEFAULT_MCAST 1500 /* bcast link max packet size (fixed) */ |
45 | 45 | #define BCLINK_WIN_DEFAULT 20 /* bcast link window size (default) */ | |
46 | #define BCLINK_WIN_DEFAULT 20 /* bcast link window size (default) */ | 46 | #define BCBEARER MAX_BEARERS |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * struct tipc_bcbearer_pair - a pair of bearers used by broadcast link | 49 | * struct tipc_bcbearer_pair - a pair of bearers used by broadcast link |
@@ -784,6 +784,7 @@ void tipc_bclink_init(void) | |||
784 | bcl->max_pkt = MAX_PKT_DEFAULT_MCAST; | 784 | bcl->max_pkt = MAX_PKT_DEFAULT_MCAST; |
785 | tipc_link_set_queue_limits(bcl, BCLINK_WIN_DEFAULT); | 785 | tipc_link_set_queue_limits(bcl, BCLINK_WIN_DEFAULT); |
786 | bcl->b_ptr = &bcbearer->bearer; | 786 | bcl->b_ptr = &bcbearer->bearer; |
787 | bearer_list[BCBEARER] = &bcbearer->bearer; | ||
787 | bcl->state = WORKING_WORKING; | 788 | bcl->state = WORKING_WORKING; |
788 | strlcpy(bcl->name, tipc_bclink_name, TIPC_MAX_LINK_NAME); | 789 | strlcpy(bcl->name, tipc_bclink_name, TIPC_MAX_LINK_NAME); |
789 | } | 790 | } |
@@ -794,6 +795,7 @@ void tipc_bclink_stop(void) | |||
794 | tipc_link_purge_queues(bcl); | 795 | tipc_link_purge_queues(bcl); |
795 | spin_unlock_bh(&bc_lock); | 796 | spin_unlock_bh(&bc_lock); |
796 | 797 | ||
798 | bearer_list[BCBEARER] = NULL; | ||
797 | memset(bclink, 0, sizeof(*bclink)); | 799 | memset(bclink, 0, sizeof(*bclink)); |
798 | memset(bcbearer, 0, sizeof(*bcbearer)); | 800 | memset(bcbearer, 0, sizeof(*bcbearer)); |
799 | } | 801 | } |