From: Cong Wang Date: Fri, 22 Mar 2013 19:14:07 +0000 (+0000) Subject: 8021q: fix a potential use-after-free X-Git-Tag: v3.9-rc5~28^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7df340ed1bac190c124c1601bfc10cde9fb4fb;p=pandora-kernel.git 8021q: fix a potential use-after-free vlan_vid_del() could possibly free ->vlan_info after a RCU grace period, however, we may still refer to the freed memory area by 'grp' pointer. Found by code inspection. This patch moves vlan_vid_del() as behind as possible. Cc: Patrick McHardy Cc: "David S. Miller" Signed-off-by: Cong Wang Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed