]> git.neil.brown.name Git - history.git/commitdiff
[PPPOE]: Fix illegal lvalue with gcc-3.5
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 05:30:50 +0000 (21:30 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Fri, 6 Feb 2004 05:30:50 +0000 (21:30 -0800)
drivers/net/pppoe.c

index 011eaf26e9f6b735e3259cd09e46e25e0fb80d45..733c72960d3c45d46d697816b880e796d1307c8a 100644 (file)
@@ -517,7 +517,7 @@ static int pppoe_create(struct socket *sock)
        sk->sk_protocol    = PX_PROTO_OE;
        sk->sk_destruct    = pppoe_sk_free;
 
-       po = pppox_sk(sk) = kmalloc(sizeof(*po), GFP_KERNEL);
+       po = sk->sk_protinfo = kmalloc(sizeof(*po), GFP_KERNEL);
        if (!po)
                goto frees;
        memset(po, 0, sizeof(*po));