Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71e168b1 authored by Florian Westphal's avatar Florian Westphal Committed by David S. Miller
Browse files

net: bridge: add compile-time assert for cb struct size



make build fail if structure no longer fits into ->cb storage.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acf8dd0a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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");