diff options
Diffstat (limited to 'net/tipc/subscr.c')
-rw-r--r-- | net/tipc/subscr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 8f8d0a6c1c16..81e2bd5f2413 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -157,7 +157,8 @@ void tipc_subscr_report_overlap(struct subscription *sub, | |||
157 | return; | 157 | return; |
158 | if (!must && !(sub->filter & TIPC_SUB_PORTS)) | 158 | if (!must && !(sub->filter & TIPC_SUB_PORTS)) |
159 | return; | 159 | return; |
160 | subscr_send_event(sub, found_lower, found_upper, event, port_ref, node); | 160 | |
161 | sub->event_cb(sub, found_lower, found_upper, event, port_ref, node); | ||
161 | } | 162 | } |
162 | 163 | ||
163 | /** | 164 | /** |
@@ -372,6 +373,7 @@ static void subscr_subscribe(struct tipc_subscr *s, | |||
372 | subscr_terminate(subscriber); | 373 | subscr_terminate(subscriber); |
373 | return; | 374 | return; |
374 | } | 375 | } |
376 | sub->event_cb = subscr_send_event; | ||
375 | memcpy(&sub->evt.s, s, sizeof(struct tipc_subscr)); | 377 | memcpy(&sub->evt.s, s, sizeof(struct tipc_subscr)); |
376 | INIT_LIST_HEAD(&sub->subscription_list); | 378 | INIT_LIST_HEAD(&sub->subscription_list); |
377 | INIT_LIST_HEAD(&sub->nameseq_list); | 379 | INIT_LIST_HEAD(&sub->nameseq_list); |