Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314636
b: refs/heads/master
c: 85c9316
h: refs/heads/master
v: v3
  • Loading branch information
Javier Martinez Canillas authored and David S. Miller committed Jun 27, 2012
1 parent f2c0cce commit 510adb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a9fbcc6d606ae7f6a4e65b8a2759f46be8d45c6
refs/heads/master: 85c931665d822f1bedd69ecaab09a8ba84643020
12 changes: 6 additions & 6 deletions trunk/drivers/connector/connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ int cn_netlink_send(struct cn_msg *msg, u32 __group, gfp_t gfp_mask)
if (!skb)
return -ENOMEM;

nlh = NLMSG_PUT(skb, 0, msg->seq, NLMSG_DONE, size - sizeof(*nlh));
nlh = nlmsg_put(skb, 0, msg->seq, NLMSG_DONE, size - sizeof(*nlh), 0);
if (!nlh) {
kfree_skb(skb);
return -EMSGSIZE;
}

data = NLMSG_DATA(nlh);
data = nlmsg_data(nlh);

memcpy(data, msg, sizeof(*data) + msg->len);

NETLINK_CB(skb).dst_group = group;

return netlink_broadcast(dev->nls, skb, 0, group, gfp_mask);

nlmsg_failure:
kfree_skb(skb);
return -EINVAL;
}
EXPORT_SYMBOL_GPL(cn_netlink_send);

Expand Down

0 comments on commit 510adb3

Please sign in to comment.