mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[NET]: Use BUILD_BUG_ON() for checking size of skb->cb.
Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
366e4adc0f
commit
ef047f5e10
4 changed files with 5 additions and 17 deletions
|
|
@ -2060,10 +2060,7 @@ static int __init af_unix_init(void)
|
|||
int rc = -1;
|
||||
struct sk_buff *dummy_skb;
|
||||
|
||||
if (sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)) {
|
||||
printk(KERN_CRIT "%s: panic\n", __FUNCTION__);
|
||||
goto out;
|
||||
}
|
||||
BUILD_BUG_ON(sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb));
|
||||
|
||||
rc = proto_register(&unix_proto, 1);
|
||||
if (rc != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue