mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
net: bridge: add compile-time assert for cb struct size
make build fail if structure no longer fits into ->cb storage. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
acf8dd0a9d
commit
71e168b151
@ -190,6 +190,8 @@ static int __init br_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
BUILD_BUG_ON(sizeof(struct br_input_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb));
|
||||
|
||||
err = stp_proto_register(&br_stp_proto);
|
||||
if (err < 0) {
|
||||
pr_err("bridge: can't register sap for STP\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user