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-05-24 16:36:51 -07:00
2007-06-01 08:18:28 -07:00
2007-05-09 07:18:01 +02:00
2007-06-12 18:58:58 -04:00
2007-06-12 18:58:58 -04:00
2007-06-01 08:18:27 -07:00
2007-05-24 16:36:52 -07:00
2007-05-09 08:57:56 +02:00
2007-06-03 11:44:20 -04:00
2007-06-01 08:18:27 -07:00
2007-05-03 13:21:48 -07:00
2007-05-03 13:21:13 -07:00
2007-06-07 13:38:40 -07:00
2007-06-07 13:38:38 -07:00
2007-05-31 01:23:22 -07:00
2007-05-09 08:57:56 +02:00
2007-05-04 17:59:08 -07:00
2007-05-27 12:03:36 -04:00
2007-05-04 17:59:06 -07:00
2007-05-04 17:59:07 -07:00
2007-05-04 17:59:07 -07:00
2007-05-04 17:59:08 -07:00
2007-05-24 17:20:49 -04:00
2007-05-09 08:57:56 +02:00
2007-04-28 11:01:05 -04:00
2007-05-15 17:44:39 -04:00
2007-04-28 11:00:58 -04:00
2007-04-28 11:01:01 -04:00
2007-04-28 11:01:07 -04:00
2007-05-11 17:53:36 -04:00
2007-04-28 11:01:00 -04:00
2007-06-03 11:44:19 -04:00
2007-05-15 17:44:39 -04:00
2007-05-04 17:59:08 -07:00
2007-05-04 17:59:07 -07:00
2007-06-20 19:09:33 -04:00
2007-05-09 12:30:51 -07:00
2007-05-24 17:20:48 -04:00
2007-06-09 18:25:34 -04:00