]> xenbits.xen.org Git - xenclient/kernel.git/commit
commit 3201e656ce56ed02e9501906c18ffe16ae350a52 quiet-no-ufo
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:05 +0000 (12:06 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:05 +0000 (12:06 +0000)
commit7aa16caf9d08e23d1f4bb9b77030947ef28e7c16
tree0ff22157a374e62179e5742c4af04329d10d3847
parentff607a29e3b1b7c922db947e65f5ef025dab2e69
commit 3201e656ce56ed02e9501906c18ffe16ae350a52
Author: Jay Vosburgh <fubar@us.ibm.com>
Date:   Tue Jun 19 11:12:12 2007 -0700

    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>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c