diff options
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r-- | net/tipc/port.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index 0651522c9435..f628c84a8f61 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -115,7 +115,7 @@ int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, | |||
115 | msg_set_nameupper(hdr, seq->upper); | 115 | msg_set_nameupper(hdr, seq->upper); |
116 | msg_set_hdr_sz(hdr, MCAST_H_SIZE); | 116 | msg_set_hdr_sz(hdr, MCAST_H_SIZE); |
117 | res = tipc_msg_build(hdr, msg_sect, num_sect, total_len, MAX_MSG_SIZE, | 117 | res = tipc_msg_build(hdr, msg_sect, num_sect, total_len, MAX_MSG_SIZE, |
118 | !oport->user_port, &buf); | 118 | &buf); |
119 | if (unlikely(!buf)) | 119 | if (unlikely(!buf)) |
120 | return res; | 120 | return res; |
121 | 121 | ||
@@ -234,7 +234,6 @@ struct tipc_port *tipc_createport_raw(void *usr_handle, | |||
234 | INIT_LIST_HEAD(&p_ptr->subscription.nodesub_list); | 234 | INIT_LIST_HEAD(&p_ptr->subscription.nodesub_list); |
235 | p_ptr->dispatcher = dispatcher; | 235 | p_ptr->dispatcher = dispatcher; |
236 | p_ptr->wakeup = wakeup; | 236 | p_ptr->wakeup = wakeup; |
237 | p_ptr->user_port = NULL; | ||
238 | k_init_timer(&p_ptr->timer, (Handler)port_timeout, ref); | 237 | k_init_timer(&p_ptr->timer, (Handler)port_timeout, ref); |
239 | INIT_LIST_HEAD(&p_ptr->publications); | 238 | INIT_LIST_HEAD(&p_ptr->publications); |
240 | INIT_LIST_HEAD(&p_ptr->port_list); | 239 | INIT_LIST_HEAD(&p_ptr->port_list); |
@@ -271,7 +270,6 @@ int tipc_deleteport(u32 ref) | |||
271 | buf = port_build_peer_abort_msg(p_ptr, TIPC_ERR_NO_PORT); | 270 | buf = port_build_peer_abort_msg(p_ptr, TIPC_ERR_NO_PORT); |
272 | tipc_nodesub_unsubscribe(&p_ptr->subscription); | 271 | tipc_nodesub_unsubscribe(&p_ptr->subscription); |
273 | } | 272 | } |
274 | kfree(p_ptr->user_port); | ||
275 | 273 | ||
276 | spin_lock_bh(&tipc_port_list_lock); | 274 | spin_lock_bh(&tipc_port_list_lock); |
277 | list_del(&p_ptr->port_list); | 275 | list_del(&p_ptr->port_list); |
@@ -444,7 +442,7 @@ int tipc_port_reject_sections(struct tipc_port *p_ptr, struct tipc_msg *hdr, | |||
444 | int res; | 442 | int res; |
445 | 443 | ||
446 | res = tipc_msg_build(hdr, msg_sect, num_sect, total_len, MAX_MSG_SIZE, | 444 | res = tipc_msg_build(hdr, msg_sect, num_sect, total_len, MAX_MSG_SIZE, |
447 | !p_ptr->user_port, &buf); | 445 | &buf); |
448 | if (!buf) | 446 | if (!buf) |
449 | return res; | 447 | return res; |
450 | 448 | ||
@@ -927,7 +925,7 @@ static int tipc_port_recv_sections(struct tipc_port *sender, unsigned int num_se | |||
927 | int res; | 925 | int res; |
928 | 926 | ||
929 | res = tipc_msg_build(&sender->phdr, msg_sect, num_sect, total_len, | 927 | res = tipc_msg_build(&sender->phdr, msg_sect, num_sect, total_len, |
930 | MAX_MSG_SIZE, !sender->user_port, &buf); | 928 | MAX_MSG_SIZE, &buf); |
931 | if (likely(buf)) | 929 | if (likely(buf)) |
932 | tipc_port_recv_msg(buf); | 930 | tipc_port_recv_msg(buf); |
933 | return res; | 931 | return res; |