diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-09 07:19:48 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-09 23:38:23 -0800 |
commit | fab25745912a82baa7c9e73f59079108d56b5d26 (patch) | |
tree | 12cdf0a2dd72ca03e98d65677c04342345245a14 /net/netlink | |
parent | ba96bcbcd213e66306e8669e3442b0b3689dd768 (diff) | |
download | linux-3.10-fab25745912a82baa7c9e73f59079108d56b5d26.tar.gz linux-3.10-fab25745912a82baa7c9e73f59079108d56b5d26.tar.bz2 linux-3.10-fab25745912a82baa7c9e73f59079108d56b5d26.zip |
netlink: Use FIELD_SIZEOF() in netlink_proto_init().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index c0353d55d56..74827e3b26a 100644 --- 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) |