2.4.36-stable kernel tree
|Autor||Marcel Sebek <sebek64@post...>|
backport vlan device unregister fix
The attached patch was merged into 2.6.8 kernel, see
However, no similar fix is in 2.4. I've faced the problem on a
2.4.26 kernel (with external patches) and with DEBUG_SLAB turned on.
When I unregister network device with attached vlan device, the vlan
device structure is freed too early (because of wrong refcounting) and
dev_mc_discard call in unregister_netdevice uses this freed memmory,
which causes oops.
Signed-off-by: Marcel Šebek <firstname.lastname@example.org>
|@@ -635,7 +635,6 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,|
|635||635||ret = unregister_vlan_dev(dev,|
|641||640||/* Group was destroyed? */|