diff options
author | Cong Wang <amwang@redhat.com> | 2013-03-22 19:14:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:04:38 -0700 |
commit | a83417946df6c57fbb4d4383c992c5ffd59b56c2 (patch) | |
tree | b3f4589670a0d6846f498628eb76f4d881cf44ff /net/atm | |
parent | d1f60c6d91df21978218af4f5442993749ecbf7e (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.
Signed-off-by: Cong Wang <amwang@redhat.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions