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:
ba96bcb
)
netlink: Use FIELD_SIZEOF() in netlink_proto_init().
author
YOSHIFUJI Hideaki / 吉藤英明
<
[email protected]
>
Wed, 9 Jan 2013 07:19:48 +0000
(07:19 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 10 Jan 2013 07:38:23 +0000
(23:38 -0800)
Signed-off-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/netlink/af_netlink.c
patch
|
blob
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index c0353d55d56fc4221d72153c6f54849cb89f292b..74827e3b26a1b2da78e0029d250d2e20309ab895 100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-2185,7
+2185,6
@@
static struct pernet_operations __net_initdata netlink_net_ops = {
static int __init netlink_proto_init(void)
{
- struct sk_buff *dummy_skb;
int i;
unsigned long limit;
unsigned int order;
@@
-2194,7
+2193,7
@@
static int __init netlink_proto_init(void)
if (err != 0)
goto out;
- BUILD_BUG_ON(sizeof(struct netlink_skb_parms) >
sizeof(dummy_skb->
cb));
+ BUILD_BUG_ON(sizeof(struct netlink_skb_parms) >
FIELD_SIZEOF(struct sk_buff,
cb));
nl_table = kcalloc(MAX_LINKS, sizeof(*nl_table), GFP_KERNEL);
if (!nl_table)