diff options
author | Amir Hanania <[email protected]> | 2012-07-09 20:47:19 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-07-10 23:32:27 -0700 |
commit | efc73f4bbc238d4f579fb612c04c8e1dd8a82979 (patch) | |
tree | ab92dd7fb1ea7a0f91137cef929c8c107fc9fe45 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 941a46a29c9388f9cef518fa3498329fb55badca (diff) |
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 <[email protected]>
Acked-by: John Fastabend <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions