summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-03-22 19:14:07 +0000
committerBen Hutchings <ben@decadent.org.uk>2013-04-10 03:20:11 +0100
commita7fe44f2340bd4c77428ad97f903ff31e67d6208 (patch)
treec6a10a5e2013a60ef6b5aa7c484bd2159ea999e9 /net/unix/af_unix.c
parent4289cdeb48d9d5d2674a85e63b315d4771bf4d27 (diff)
8021q: fix a potential use-after-free
[ Upstream commit 4a7df340ed1bac190c124c1601bfc10cde9fb4fb ] 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 <kaber@trash.net> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions