git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETLINK]: Introduce nlmsg_hdr() helper
[pandora-kernel.git]
/
drivers
/
connector
/
connector.c
diff --git
a/drivers/connector/connector.c
b/drivers/connector/connector.c
index
a905f78
..
7f9c4fb
100644
(file)
--- a/
drivers/connector/connector.c
+++ b/
drivers/connector/connector.c
@@
-212,7
+212,7
@@
static void cn_rx_skb(struct sk_buff *__skb)
skb = skb_get(__skb);
if (skb->len >= NLMSG_SPACE(0)) {
- nlh =
(struct nlmsghdr *)skb->data
;
+ nlh =
nlmsg_hdr(skb)
;
if (nlh->nlmsg_len < sizeof(struct cn_msg) ||
skb->len < nlh->nlmsg_len ||