projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf8dd0
)
net: bridge: add compile-time assert for cb struct size
author
Florian Westphal
<fw@strlen.de>
Tue, 3 Mar 2015 12:53:31 +0000
(13:53 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2015 19:07:04 +0000
(14:07 -0500)
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>
net/bridge/br.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bridge/br.c
b/net/bridge/br.c
index fb57ab6b24f9ef8feea780179ad2e8284a9e532f..02c24cf63c344a3b15bcf87369da7f847150fab3 100644
(file)
--- a/
net/bridge/br.c
+++ b/
net/bridge/br.c
@@
-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");