summaryrefslogtreecommitdiff
path: root/include/uapi/linux/netfilter_bridge/ebt_among.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-05-04 10:47:41 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-05-04 10:47:41 -0700
commit67f852ef92274116c9487cb312e58105d0e8d3e7 (patch)
tree26229bb3a2e6767cab0b7c30a8d2fdc34405185f /include/uapi/linux/netfilter_bridge/ebt_among.h
parent9d82973e032e246ff5663c9805fbb5407ae932e3 (diff)
parent1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (diff)
Merge tag 'flexible-array-member-5.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull flex-array reverts from Gustavo Silva: "This reverts flexible array changes in include/uapi/ These structures can get embedded in other structures in user-space and cause all sorts of warnings and problems[1]. So, we better don't take any chances and keep the zero-length arrays in place for now" [1] https://lore.kernel.org/lkml/20200424121553.GE26002@ziepe.ca/ * tag 'flexible-array-member-5.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: uapi: revert flexible-array conversions
Diffstat (limited to 'include/uapi/linux/netfilter_bridge/ebt_among.h')
-rw-r--r--include/uapi/linux/netfilter_bridge/ebt_among.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/netfilter_bridge/ebt_among.h b/include/uapi/linux/netfilter_bridge/ebt_among.h
index 73b26a280c4f..9acf757bc1f7 100644
--- a/include/uapi/linux/netfilter_bridge/ebt_among.h
+++ b/include/uapi/linux/netfilter_bridge/ebt_among.h
@@ -40,7 +40,7 @@ struct ebt_mac_wormhash_tuple {
struct ebt_mac_wormhash {
int table[257];
int poolsize;
- struct ebt_mac_wormhash_tuple pool[];
+ struct ebt_mac_wormhash_tuple pool[0];
};
#define ebt_mac_wormhash_size(x) ((x) ? sizeof(struct ebt_mac_wormhash) \