Commit aed384c4 authored by Petr Vandrovec's avatar Petr Vandrovec Committed by David S. Miller

[VLAN]: Do not access released memory.

parent 3a4bc665
......@@ -727,7 +727,6 @@ static void vlan_flush_mc_list(struct net_device *dev)
struct dev_mc_list *dmi = dev->mc_list;
while (dmi) {
dev_mc_delete(dev, dmi->dmi_addr, dmi->dmi_addrlen, 0);
printk(KERN_DEBUG "%s: del %.2x:%.2x:%.2x:%.2x:%.2x:%.2x mcast address from vlan interface\n",
dev->name,
dmi->dmi_addr[0],
......@@ -736,6 +735,7 @@ static void vlan_flush_mc_list(struct net_device *dev)
dmi->dmi_addr[3],
dmi->dmi_addr[4],
dmi->dmi_addr[5]);
dev_mc_delete(dev, dmi->dmi_addr, dmi->dmi_addrlen, 0);
dmi = dev->mc_list;
}
......
Markdown is supported
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