mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04: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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
acf8dd0a9d
commit
71e168b151
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue