Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314648
b: refs/heads/master
c: e052733
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jun 27, 2012
1 parent 6357e05 commit ac137b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 01f534d0ae9d7b3ad4dcd943d53418731da82ea7
refs/heads/master: e05273341c573f7b543f45c06e4a232c5b7c5a59
10 changes: 6 additions & 4 deletions trunk/drivers/infiniband/core/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
unsigned char *prev_tail;

prev_tail = skb_tail_pointer(skb);
*nlh = NLMSG_NEW(skb, 0, seq, RDMA_NL_GET_TYPE(client, op),
len, NLM_F_MULTI);
*nlh = nlmsg_put(skb, 0, seq, RDMA_NL_GET_TYPE(client, op),
len, NLM_F_MULTI);
if (!*nlh)
goto out_nlmsg_trim;
(*nlh)->nlmsg_len = skb_tail_pointer(skb) - prev_tail;
return NLMSG_DATA(*nlh);
return nlmsg_data(*nlh);

nlmsg_failure:
out_nlmsg_trim:
nlmsg_trim(skb, prev_tail);
return NULL;
}
Expand Down

0 comments on commit ac137b3

Please sign in to comment.