--- zzzz-none-000/linux-2.6.39.4/drivers/net/bonding/bond_sysfs.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/drivers/net/bonding/bond_sysfs.c 2021-11-10 13:38:15.000000000 +0000 @@ -227,6 +227,12 @@ struct net_device *dev; struct bonding *bond = to_bond(d); + /* Quick sanity check -- is the bond interface up? */ + if (!(bond->dev->flags & IFF_UP)) { + pr_warning("%s: doing slave updates when interface is down.\n", + bond->dev->name); + } + if (!rtnl_trylock()) return restart_syscall();