Commit 8a8e8553 authored by Andrew Morton's avatar Andrew Morton Committed by Stephen Hemminger

[NETLINK]: Fix illegal lvalue with gcc-3.5

parent 9e81ab3b
...@@ -230,7 +230,7 @@ static int netlink_create(struct socket *sock, int protocol) ...@@ -230,7 +230,7 @@ static int netlink_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);
nlk = nlk_sk(sk) = kmalloc(sizeof(*nlk), GFP_KERNEL); nlk = sk->sk_protinfo = kmalloc(sizeof(*nlk), GFP_KERNEL);
if (!nlk) { if (!nlk) {
sk_free(sk); sk_free(sk);
return -ENOMEM; return -ENOMEM;
......
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