Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314637
b: refs/heads/master
c: 8786395
h: refs/heads/master
i:
  314635: f2c0cce
v: v3
  • Loading branch information
David S. Miller committed Jun 27, 2012
1 parent 510adb3 commit a8b3793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 85c931665d822f1bedd69ecaab09a8ba84643020
refs/heads/master: 8786395c6956ae16cd04cc8c55e0f5fcd45fa939
13 changes: 6 additions & 7 deletions trunk/Documentation/connector/cn_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ static int cn_test_want_notify(void)
return -ENOMEM;
}

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

msg = (struct cn_msg *)NLMSG_DATA(nlh);
msg = nlmsg_data(nlh);

memset(msg, 0, size0);

Expand Down Expand Up @@ -117,11 +121,6 @@ static int cn_test_want_notify(void)
pr_info("request was sent: group=0x%x\n", ctl->group);

return 0;

nlmsg_failure:
pr_err("failed to send %u.%u\n", msg->seq, msg->ack);
kfree_skb(skb);
return -EINVAL;
}
#endif

Expand Down

0 comments on commit a8b3793

Please sign in to comment.