Commit 37dfdf37 authored by Mitch A Williams's avatar Mitch A Williams Committed by Jeff Kirsher
Browse files

i40evf: remove leftover VLAN filters

If we're using VLANs and communications with the PF fail during
shutdown, we will leak memory because not all of the VLAN filters will
be removed. To eliminate this possibility, go through the list again
right before the module is removed and delete any leftover entries.

Change-ID: Id3b5315c47ca0a61ae123a96ff345d010bc41aed
Signed-off-by: default avatarMitch Williams <>
Acked-by: default avatarShannon Nelson <>
Tested-by: default avatarJim Young <>
Signed-off-by: default avatarJeff Kirsher <>
parent 53d0b3ae
......@@ -2462,6 +2462,10 @@ static void i40evf_remove(struct pci_dev *pdev)
list_for_each_entry_safe(f, ftmp, &adapter->vlan_filter_list, list) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment