]> err.no Git - linux-2.6/commit
[BONDING]: Fix resource use after free
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 14 Nov 2007 05:16:29 +0000 (21:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Nov 2007 05:16:29 +0000 (21:16 -0800)
commit8cbdeec637c1ce87bf329c5c19a9964e36bdf9fb
tree0019a5547ef145cdcd9f6d23e3b044f341829b8c
parentce1d18e0064d55106a7042c07cfca97cad66f407
[BONDING]: Fix resource use after free

Fix bond_destroy and bond_free_all to not reference the struct
net_device after calling unregister_netdevice.

Bug and offending change reported by Moni Shoua <monis@voltaire.com>

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c