linux/net/8021q
Amir Hanania efc73f4bbc net: Fix memory leak - vlan_info struct
In driver reload test there is a memory leak.
The structure vlan_info was not freed when the driver was removed.
It was not released since the nr_vids var is one after last vlan was removed.
The nr_vids is one, since vlan zero is added to the interface when the interface
is being set, but the vlan zero is not deleted at unregister.
Fix - delete vlan zero when we unregister the device.

Signed-off-by: Amir Hanania <amir.hanania@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-07-10 23:32:27 -07:00
..
Kconfig vlan: Add GVRP support 2008-07-05 21:26:57 -07:00
Makefile vlan: uninline __vlan_hwaccel_rx 2008-07-08 03:23:36 -07:00
vlan_core.c 8021q: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:17 -04:00
vlan_dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-16 22:17:37 -04:00
vlan_gvrp.c vlan: rename vlan_dev_info to vlan_dev_priv 2011-12-08 19:51:30 -05:00
vlan_netlink.c vlan: Stop using NLA_PUT*(). 2012-04-02 04:33:44 -04:00
vlan.c net: Fix memory leak - vlan_info struct 2012-07-10 23:32:27 -07:00
vlan.h vlan: add 802.1q netpoll support 2011-12-08 19:58:30 -05:00
vlanproc.c vlan: rename vlan_dev_info to vlan_dev_priv 2011-12-08 19:51:30 -05:00
vlanproc.h [VLAN]: Add a net argument to proc init and cleanup calls. 2008-04-16 00:51:12 -07:00