Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314638
b: refs/heads/master
c: a8edf8a
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jun 27, 2012
1 parent a8b3793 commit 95b6d49
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: 8786395c6956ae16cd04cc8c55e0f5fcd45fa939
refs/heads/master: a8edf8a690817ebfe68aa14c4bc482f62699077f
10 changes: 6 additions & 4 deletions trunk/drivers/staging/gdm72xx/netlink_k.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
}

seq++;
nlh = NLMSG_PUT(skb, 0, seq, type, len);
memcpy(NLMSG_DATA(nlh), msg, len);
nlh = nlmsg_put(skb, 0, seq, type, len, 0);
if (!nlh) {
kfree_skb(skb);
return -EMSGSIZE;
}
memcpy(nlmsg_data(nlh), msg, len);

NETLINK_CB(skb).pid = 0;
NETLINK_CB(skb).dst_group = 0;
Expand All @@ -144,7 +148,5 @@ int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
}
ret = 0;
}

nlmsg_failure:
return ret;
}

0 comments on commit 95b6d49

Please sign in to comment.