]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/llc/llc_conn.c
tdfxfb: remove ypan checks done by a higher layer
[linux-2.6-omap-h63xx.git] / net / llc / llc_conn.c
index 5ebfd93ff5e7c8df59f207ce0c23e5e0eab5b665..5c6d89c6d51d2726dd008162181f307c6825e8d3 100644 (file)
@@ -700,7 +700,7 @@ static struct sock *llc_create_incoming_sock(struct sock *sk,
                                             struct llc_addr *saddr,
                                             struct llc_addr *daddr)
 {
-       struct sock *newsk = llc_sk_alloc(sk->sk_net, sk->sk_family, GFP_ATOMIC,
+       struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC,
                                          sk->sk_prot);
        struct llc_sock *newllc, *llc = llc_sk(sk);