We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a7b84 commit 0afee4eCopy full SHA for 0afee4e
drivers/net/bonding/bond_main.c
@@ -4588,7 +4588,11 @@ static int bond_check_params(struct bond_params *params)
4588
arp_ip_target[i]);
4589
arp_interval = 0;
4590
} else {
4591
- arp_target[arp_ip_count++] = ip;
+ if (bond_get_targets_ip(arp_target, ip) == -1)
4592
+ arp_target[arp_ip_count++] = ip;
4593
+ else
4594
+ pr_warning("Warning: duplicate address %pI4 in arp_ip_target, skipping\n",
4595
+ &ip);
4596
}
4597
4598
0 commit comments