diff --git a/net/sched/cls_flow.c b/net/sched/cls_flow.c index 51ff19485e1218ec8eef3a051bbb3529c8ff8ad0..1d8bd0dbcd1fff38ed191b89decb3f0afb0456af 100644 --- a/net/sched/cls_flow.c +++ b/net/sched/cls_flow.c @@ -285,7 +285,7 @@ static int flow_classify(struct sk_buff *skb, const struct tcf_proto *tp, int r; list_for_each_entry(f, &head->filters, list) { - u32 keys[f->nkeys]; + u32 keys[FLOW_KEY_MAX + 1]; struct flow_keys flow_keys; if (!tcf_em_tree_match(skb, &f->ematches, NULL))