]> 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)
commit7cc7baeab9b3793c24353ce5f00193c6f0df485c
tree6fc19386e085c0bff5930acc5256bd975ec6272d
parent3ecae2fc613c8a5dd61adc84325b4ea4e5ce0269
Revert "bonding: remove sysfs before removing devices"

This reverts commit 382dc6732540e1d3e8183b1d6c2ba5b007f8239a.

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