We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f3a5c commit 2191a54Copy full SHA for 2191a54
net/sched/act_ct.c
@@ -44,6 +44,8 @@ static DEFINE_MUTEX(zones_mutex);
44
struct zones_ht_key {
45
struct net *net;
46
u16 zone;
47
+ /* Note : pad[] must be the last field. */
48
+ u8 pad[];
49
};
50
51
struct tcf_ct_flow_table {
@@ -60,7 +62,7 @@ struct tcf_ct_flow_table {
60
62
static const struct rhashtable_params zones_params = {
61
63
.head_offset = offsetof(struct tcf_ct_flow_table, node),
64
.key_offset = offsetof(struct tcf_ct_flow_table, key),
- .key_len = sizeof_field(struct tcf_ct_flow_table, key),
65
+ .key_len = offsetof(struct zones_ht_key, pad),
66
.automatic_shrinking = true,
67
68
0 commit comments