projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5813104
)
staging: gdm724x: Use NLMSG_HDRLEN
author
Himangi Saraogi
<
[email protected]
>
Tue, 22 Jul 2014 18:12:28 +0000
(23:42 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 22 Jul 2014 23:08:13 +0000
(16:08 -0700)
Replace use of NLMSG_SPACE(0) with NLMSG_HDRLEN as they are equivalent
and NLMSG_SPACE seems to be deprecated.
Signed-off-by: Himangi Saraogi <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/gdm724x/netlink_k.c
patch
|
blob
|
history
diff --git
a/drivers/staging/gdm724x/netlink_k.c
b/drivers/staging/gdm724x/netlink_k.c
index 5ddd36948a2f732c5f1c7a6450a1e62b594a81e7..59a18304ef4a592830b3800ffcd4ecffb0903951 100644
(file)
--- a/
drivers/staging/gdm724x/netlink_k.c
+++ b/
drivers/staging/gdm724x/netlink_k.c
@@
-54,7
+54,7
@@
static void netlink_rcv_cb(struct sk_buff *skb)
return;
}
- if (skb->len < NLMSG_
SPACE(0)
) {
+ if (skb->len < NLMSG_
HDRLEN
) {
pr_err("nl cb - invalid skb length\n");
return;
}