af_netrom.c (c346dca10840a874240c78efe3f39acf4312a1f2) | af_netrom.c (3b1e0a655f8eba44ab1ee2a1068d169ccfb853b9) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 452 unchanged lines hidden (view full) --- 461static struct sock *nr_make_new(struct sock *osk) 462{ 463 struct sock *sk; 464 struct nr_sock *nr, *onr; 465 466 if (osk->sk_type != SOCK_SEQPACKET) 467 return NULL; 468 | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 452 unchanged lines hidden (view full) --- 461static struct sock *nr_make_new(struct sock *osk) 462{ 463 struct sock *sk; 464 struct nr_sock *nr, *onr; 465 466 if (osk->sk_type != SOCK_SEQPACKET) 467 return NULL; 468 |
469 sk = sk_alloc(osk->sk_net, PF_NETROM, GFP_ATOMIC, osk->sk_prot); | 469 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot); |
470 if (sk == NULL) 471 return NULL; 472 473 nr = nr_sk(sk); 474 475 sock_init_data(NULL, sk); 476 477 sk->sk_type = osk->sk_type; --- 1041 unchanged lines hidden --- | 470 if (sk == NULL) 471 return NULL; 472 473 nr = nr_sk(sk); 474 475 sock_init_data(NULL, sk); 476 477 sk->sk_type = osk->sk_type; --- 1041 unchanged lines hidden --- |