aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r--net/tipc/port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index 84b2a574f161..0bb185a3ed4a 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -206,7 +206,7 @@ exit:
206 * 206 *
207 * Returns pointer to (locked) TIPC port, or NULL if unable to create it 207 * Returns pointer to (locked) TIPC port, or NULL if unable to create it
208 */ 208 */
209struct tipc_port *tipc_createport(void *usr_handle, 209struct tipc_port *tipc_createport(struct sock *sk,
210 u32 (*dispatcher)(struct tipc_port *, struct sk_buff *), 210 u32 (*dispatcher)(struct tipc_port *, struct sk_buff *),
211 void (*wakeup)(struct tipc_port *), 211 void (*wakeup)(struct tipc_port *),
212 const u32 importance) 212 const u32 importance)
@@ -227,7 +227,7 @@ struct tipc_port *tipc_createport(void *usr_handle,
227 return NULL; 227 return NULL;
228 } 228 }
229 229
230 p_ptr->usr_handle = usr_handle; 230 p_ptr->sk = sk;
231 p_ptr->max_pkt = MAX_PKT_DEFAULT; 231 p_ptr->max_pkt = MAX_PKT_DEFAULT;
232 p_ptr->ref = ref; 232 p_ptr->ref = ref;
233 INIT_LIST_HEAD(&p_ptr->wait_list); 233 INIT_LIST_HEAD(&p_ptr->wait_list);