diff options
Diffstat (limited to 'net/tipc/port.c')
| -rw-r--r-- | net/tipc/port.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index bcd5da00737b..5d2b9ce84d0a 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * net/tipc/port.c: TIPC port code | 2 | * net/tipc/port.c: TIPC port code |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 1992-2006, Ericsson AB | 4 | * Copyright (c) 1992-2007, Ericsson AB |
| 5 | * Copyright (c) 2004-2005, Wind River Systems | 5 | * Copyright (c) 2004-2007, Wind River Systems |
| 6 | * All rights reserved. | 6 | * All rights reserved. |
| 7 | * | 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
| @@ -239,6 +239,8 @@ u32 tipc_createport_raw(void *usr_handle, | |||
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | tipc_port_lock(ref); | 241 | tipc_port_lock(ref); |
| 242 | p_ptr->publ.usr_handle = usr_handle; | ||
| 243 | p_ptr->publ.max_pkt = MAX_PKT_DEFAULT; | ||
| 242 | p_ptr->publ.ref = ref; | 244 | p_ptr->publ.ref = ref; |
| 243 | msg = &p_ptr->publ.phdr; | 245 | msg = &p_ptr->publ.phdr; |
| 244 | msg_init(msg, DATA_LOW, TIPC_NAMED_MSG, TIPC_OK, LONG_H_SIZE, 0); | 246 | msg_init(msg, DATA_LOW, TIPC_NAMED_MSG, TIPC_OK, LONG_H_SIZE, 0); |
| @@ -248,11 +250,9 @@ u32 tipc_createport_raw(void *usr_handle, | |||
| 248 | msg_set_importance(msg,importance); | 250 | msg_set_importance(msg,importance); |
| 249 | p_ptr->last_in_seqno = 41; | 251 | p_ptr->last_in_seqno = 41; |
| 250 | p_ptr->sent = 1; | 252 | p_ptr->sent = 1; |
| 251 | p_ptr->publ.usr_handle = usr_handle; | ||
| 252 | INIT_LIST_HEAD(&p_ptr->wait_list); | 253 | INIT_LIST_HEAD(&p_ptr->wait_list); |
| 253 | INIT_LIST_HEAD(&p_ptr->subscription.nodesub_list); | 254 | INIT_LIST_HEAD(&p_ptr->subscription.nodesub_list); |
| 254 | p_ptr->congested_link = NULL; | 255 | p_ptr->congested_link = NULL; |
| 255 | p_ptr->max_pkt = MAX_PKT_DEFAULT; | ||
| 256 | p_ptr->dispatcher = dispatcher; | 256 | p_ptr->dispatcher = dispatcher; |
| 257 | p_ptr->wakeup = wakeup; | 257 | p_ptr->wakeup = wakeup; |
| 258 | p_ptr->user_port = NULL; | 258 | p_ptr->user_port = NULL; |
| @@ -1243,7 +1243,7 @@ int tipc_connect2port(u32 ref, struct tipc_portid const *peer) | |||
| 1243 | res = TIPC_OK; | 1243 | res = TIPC_OK; |
| 1244 | exit: | 1244 | exit: |
| 1245 | tipc_port_unlock(p_ptr); | 1245 | tipc_port_unlock(p_ptr); |
| 1246 | p_ptr->max_pkt = tipc_link_get_max_pkt(peer->node, ref); | 1246 | p_ptr->publ.max_pkt = tipc_link_get_max_pkt(peer->node, ref); |
| 1247 | return res; | 1247 | return res; |
| 1248 | } | 1248 | } |
| 1249 | 1249 | ||
