summaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2015-03-10 01:03:40 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-10 04:44:31 +0100
commit5778d39d070b4ac5f889928175b7f2d53ae7504e (patch)
treee2d972ae0d8199cd874e80fcaba18f2ecc533778 /mm/zswap.c
parentMerge git://git.kernel.org/pub/scm/virt/kvm/kvm (diff)
downloadlinux-5778d39d070b4ac5f889928175b7f2d53ae7504e.tar.xz
linux-5778d39d070b4ac5f889928175b7f2d53ae7504e.zip
net_sched: fix struct tc_u_hnode layout in u32
We dynamically allocate divisor+1 entries for ->ht[] in tc_u_hnode: ht = kzalloc(sizeof(*ht) + divisor*sizeof(void *), GFP_KERNEL); So ->ht is supposed to be the last field of this struct, however this is broken, since an rcu head is appended after it. Fixes: 1ce87720d456 ("net: sched: make cls_u32 lockless") Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions