]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/tipc/netlink.c
arch/mips/kernel/stacktrace.c: Heiko can't type
[linux-2.6-omap-h63xx.git] / net / tipc / netlink.c
index b8e1edc2badcbff690cecc06adaed983ec874039..6a7f7b4c2595b365ff5f3b015b23e553080baa8e 100644 (file)
@@ -57,10 +57,10 @@ static int handle_cmd(struct sk_buff *skb, struct genl_info *info)
 
        if (rep_buf) {
                skb_push(rep_buf, hdr_space);
-               rep_nlh = (struct nlmsghdr *)rep_buf->data;
+               rep_nlh = nlmsg_hdr(rep_buf);
                memcpy(rep_nlh, req_nlh, hdr_space);
                rep_nlh->nlmsg_len = rep_buf->len;
-               genlmsg_unicast(rep_buf, req_nlh->nlmsg_pid);
+               genlmsg_unicast(rep_buf, NETLINK_CB(skb).pid);
        }
 
        return 0;