af_rose.c (c346dca10840a874240c78efe3f39acf4312a1f2) af_rose.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 (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)

--- 537 unchanged lines hidden (view full) ---

546static struct sock *rose_make_new(struct sock *osk)
547{
548 struct sock *sk;
549 struct rose_sock *rose, *orose;
550
551 if (osk->sk_type != SOCK_SEQPACKET)
552 return NULL;
553
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 (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)

--- 537 unchanged lines hidden (view full) ---

546static struct sock *rose_make_new(struct sock *osk)
547{
548 struct sock *sk;
549 struct rose_sock *rose, *orose;
550
551 if (osk->sk_type != SOCK_SEQPACKET)
552 return NULL;
553
554 sk = sk_alloc(osk->sk_net, PF_ROSE, GFP_ATOMIC, &rose_proto);
554 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto);
555 if (sk == NULL)
556 return NULL;
557
558 rose = rose_sk(sk);
559
560 sock_init_data(NULL, sk);
561
562 skb_queue_head_init(&rose->ack_queue);

--- 1091 unchanged lines hidden ---
555 if (sk == NULL)
556 return NULL;
557
558 rose = rose_sk(sk);
559
560 sock_init_data(NULL, sk);
561
562 skb_queue_head_init(&rose->ack_queue);

--- 1091 unchanged lines hidden ---