diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-04-24 10:50:00 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-05-04 11:30:15 -0500 |
commit | 1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch) | |
tree | e16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/netfilter_bridge | |
parent | Linux 5.7-rc4 (diff) | |
download | linux-dev-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.tar.xz linux-dev-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.zip |
uapi: revert flexible-array conversions
These structures can get embedded in other structures in user-space
and cause all sorts of warnings and problems. So, we better don't take
any chances and keep the zero-length arrays in place for now.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'include/uapi/linux/netfilter_bridge')
-rw-r--r-- | include/uapi/linux/netfilter_bridge/ebt_among.h | 2 |
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) \ |