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

index b0e410d1a88c55f09eb85885bf698ffa7c97001b..38c27b9bb70a0e9f682cd8b0d274bc57f3d4e093 100644 (file)
@@ -230,7 +230,7 @@ static int netlink_create(struct socket *sock, int protocol)
        sock_init_data(sock,sk);
        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) {
                sk_free(sk);
                return -ENOMEM;