]> git.hungrycats.org Git - linux/commitdiff
[AF_PACKET]: Fix illegal lvalue with gcc-3.5
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 05:30:24 +0000 (21:30 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Fri, 6 Feb 2004 05:30:24 +0000 (21:30 -0800)
net/packet/af_packet.c

index 3b01f540b652652a948e6c929eef9f81a01ea136..7b4a14aac9553bf3c0df3ded5fdcd9b8e2b64a7e 100644 (file)
@@ -961,7 +961,7 @@ static int packet_create(struct socket *sock, int protocol)
        sock_init_data(sock,sk);
        sk_set_owner(sk, THIS_MODULE);
 
-       po = pkt_sk(sk) = kmalloc(sizeof(*po), GFP_KERNEL);
+       po = sk->sk_protinfo = kmalloc(sizeof(*po), GFP_KERNEL);
        if (!po)
                goto out_free;
        memset(po, 0, sizeof(*po));