Jay Vosburgh 3201e656ce bonding: Fix use after free in unregister path
The following patch (based on a patch from Stephen Hemminger
<shemminger@linux-foundation.org>) removes use after free conditions in
the unregister path for the bonding master.  Without this patch, an
operation of the form "echo -bond0 > /sys/class/net/bonding_masters"
would trigger a NULL pointer dereference in sysfs.  I was not able to
induce the failure with the non-sysfs code path, but for consistency I
updated that code as well.

	I also did some testing of the bonding /proc file being open
while the bond is being deleted, and didn't see any problems there.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-06-20 19:12:41 -04:00
..
2007-06-03 18:08:44 -07:00
2007-06-08 12:41:08 -07:00
2007-06-16 13:16:16 -07:00
2007-06-16 02:24:43 +02:00
2007-06-08 17:23:33 -07:00
2007-06-02 00:48:48 -04:00
2007-06-04 17:54:09 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 13:37:51 +10:00
2007-06-19 13:10:18 +02:00
2007-06-08 17:23:33 -07:00