]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "bonding: remove sysfs before removing devices"
authornikolay@redhat.com <nikolay@redhat.com>
Sat, 6 Apr 2013 00:54:37 +0000 (00:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 20:45:09 +0000 (16:45 -0400)
commit27b7956e4434f95329e03483f7b8c58ba7e5b900
tree6fc19386e085c0bff5930acc5256bd975ec6272d
parentb8c82334605b2d3e7f7dd2df88f9932ee0574abf
Revert "bonding: remove sysfs before removing devices"

This reverts commit 31766271e5e3a1b0d2174a9830540627105766cc.

This patch introduces a new bug which causes access to freed memory.
In bond_uninit: list_del(&bond->bond_list);
bond_list is linked in bond_net's dev_list which is freed by
unregister_pernet_subsys.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c