[TCP]: Use BUILD_BUG_ON for tcp_skb_cb size checking
authorPavel Emelyanov <xemul@openvz.org>
Tue, 11 Dec 2007 10:12:04 +0000 (02:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:57:07 +0000 (14:57 -0800)
commit1f9e636ea21bd648a5cbd2f744a1d39a5e183b20
tree33d4c23d9c2a64ed042151f51962754af3359692
parentea72912c888661d1a847f1b1450643d4114097cf
[TCP]: Use BUILD_BUG_ON for tcp_skb_cb size checking

The sizeof(struct tcp_skb_cb) should not be less than the
sizeof(skb->cb). This is checked in net/ipv4/tcp.c, but
this check can be made more gracefully.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c