From: WANG Cong Date: Tue, 10 Mar 2015 00:03:40 +0000 (-0700) Subject: net_sched: fix struct tc_u_hnode layout in u32 X-Git-Tag: omap-for-v4.1/fixes-rc1~306^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5778d39d070b4ac5f889928175b7f2d53ae7504e;p=pandora-kernel.git 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 Cc: John Fastabend Signed-off-by: Cong Wang Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed