diff options
| author | Jay Vosburgh <[email protected]> | 2007-06-19 11:12:12 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2007-06-20 19:12:41 -0400 |
| commit | 3201e656ce56ed02e9501906c18ffe16ae350a52 (patch) | |
| tree | 8dbe0df57ffb7afd7fe1aac65fcd0ae0600870f0 /include/linux/stacktrace.h | |
| parent | 3a2c892daaf54b31a70785c2821771e8094188ed (diff) | |
bonding: Fix use after free in unregister path
The following patch (based on a patch from Stephen Hemminger
<[email protected]>) 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 <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions