net: sched: cls_u32: rcu can not be last node
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 17 Sep 2014 18:11:46 +0000 (11:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 21:05:45 +0000 (17:05 -0400)
commit4e2840eee6b21cb5230bd7cac8407badb201aac3
tree9ff835e7c6d75beb754d1992b2bb24b7a6359567
parentab34f6480806263d7b4d00fa06d3647bac73b68c
net: sched: cls_u32: rcu can not be last node

tc_u32_sel 'sel' in tc_u_knode expects to be the last element in the
structure and pads the structure with tc_u32_key fields for each key.

 kzalloc(sizeof(*n) + s->nkeys*sizeof(struct tc_u32_key), GFP_KERNEL)

CC: Eric Dumazet <edumazet@google.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c