Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0afee4e8 authored by Veaceslav Falico's avatar Veaceslav Falico Committed by David S. Miller
Browse files

bonding: don't add duplicate targets to arp_ip_target



Print a warning and skip them.

Signed-off-by: default avatarVeaceslav Falico <vfalico@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87a7b84b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -4588,7 +4588,11 @@ static int bond_check_params(struct bond_params *params)
				   arp_ip_target[i]);
			arp_interval = 0;
		} else {
			if (bond_get_targets_ip(arp_target, ip) == -1)
				arp_target[arp_ip_count++] = ip;
			else
				pr_warning("Warning: duplicate address %pI4 in arp_ip_target, skipping\n",
					   &ip);
		}
	}