diff options
author | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
commit | b10778a00d40b3d9fdaaf5891e802794781ff71c (patch) | |
tree | 6ba4cbac86eecedc3f30650e7f764ecf00c83898 /net/tipc/node_subscr.c | |
parent | 594081ee7145cc30a3977cb4e218f81213b63dc5 (diff) | |
parent | bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff) |
Merge commit 'v3.17' into next
Diffstat (limited to 'net/tipc/node_subscr.c')
-rw-r--r-- | net/tipc/node_subscr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/tipc/node_subscr.c b/net/tipc/node_subscr.c index 7c59ab1d6ecb..2d13eea8574a 100644 --- a/net/tipc/node_subscr.c +++ b/net/tipc/node_subscr.c | |||
@@ -84,11 +84,13 @@ void tipc_nodesub_unsubscribe(struct tipc_node_subscr *node_sub) | |||
84 | void tipc_nodesub_notify(struct list_head *nsub_list) | 84 | void tipc_nodesub_notify(struct list_head *nsub_list) |
85 | { | 85 | { |
86 | struct tipc_node_subscr *ns, *safe; | 86 | struct tipc_node_subscr *ns, *safe; |
87 | net_ev_handler handle_node_down; | ||
87 | 88 | ||
88 | list_for_each_entry_safe(ns, safe, nsub_list, nodesub_list) { | 89 | list_for_each_entry_safe(ns, safe, nsub_list, nodesub_list) { |
89 | if (ns->handle_node_down) { | 90 | handle_node_down = ns->handle_node_down; |
90 | ns->handle_node_down(ns->usr_handle); | 91 | if (handle_node_down) { |
91 | ns->handle_node_down = NULL; | 92 | ns->handle_node_down = NULL; |
93 | handle_node_down(ns->usr_handle); | ||
92 | } | 94 | } |
93 | } | 95 | } |
94 | } | 96 | } |