--- zzzz-none-000/linux-2.6.39.4/drivers/net/bonding/bond_sysfs.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/net/bonding/bond_sysfs.c 2021-11-10 13:23:10.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();