Commit 11591177 authored by Andrew Morton's avatar Andrew Morton Committed by Stephen Hemminger

[AF_PACKET]: Fix illegal lvalue with gcc-3.5

parent 8a8e8553
...@@ -961,7 +961,7 @@ static int packet_create(struct socket *sock, int protocol) ...@@ -961,7 +961,7 @@ static int packet_create(struct socket *sock, int protocol)
sock_init_data(sock,sk); sock_init_data(sock,sk);
sk_set_owner(sk, THIS_MODULE); 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) if (!po)
goto out_free; goto out_free;
memset(po, 0, sizeof(*po)); memset(po, 0, sizeof(*po));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment