diff options
author | Eyal Birger <eyal.birger@gmail.com> | 2015-03-01 15:58:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 08:19:30 +0300 |
commit | b4772ef879a8f7d8c56118c2ae5a296fcf6f81d2 (patch) | |
tree | b4498c776c28e5c87cdeebf17577d002bcd21d47 /net/ipv6/af_inet6.c | |
parent | 2472d7613bd3bae40a7dc75539c0858d5b9e795a (diff) | |
download | linux-b4772ef879a8f7d8c56118c2ae5a296fcf6f81d2.tar.xz |
net: use common macro for assering skb->cb[] available size in protocol families
As part of an effort to move skb->dropcount to skb->cb[] use a common
macro in protocol families using skb->cb[] for ancillary data to
validate available room in skb->cb[].
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index e8c4400f23e9..6bafcc2c79e3 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -824,7 +824,7 @@ static int __init inet6_init(void) struct list_head *r; int err = 0; - BUILD_BUG_ON(sizeof(struct inet6_skb_parm) > FIELD_SIZEOF(struct sk_buff, cb)); + sock_skb_cb_check_size(sizeof(struct inet6_skb_parm)); /* Register the socket-side information for inet6_create. */ for (r = &inetsw6[0]; r < &inetsw6[SOCK_MAX]; ++r) |