| Submitter | Milos Vyletel |
|---|---|
| Date | Jan. 25, 2013, 6:41 p.m. |
| Message ID | <47084655-E363-4D67-94B3-B6A3471B4D4E@sde.cz> |
| Download | mbox | patch |
| Permalink | /patch/215833/ |
| State | Superseded |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 1877ed7..50f7eef 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c @@ -1053,6 +1053,7 @@ static ssize_t bonding_store_primary(struct device *d, pr_info("%s: Setting primary slave to None.\n", bond->dev->name); bond->primary_slave = NULL; + memset(bond->params.primary, '\0', sizeof(bond->params.primary)); bond_select_active_slave(bond); goto out; }