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

Commit d62844a8 authored by Hangbin Liu's avatar Hangbin Liu Committed by David S. Miller
Browse files

bonding: check nla_put_be32 return value

parent ac45bd93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -549,7 +549,8 @@ static int bond_fill_info(struct sk_buff *skb,
	targets_added = 0;
	for (i = 0; i < BOND_MAX_ARP_TARGETS; i++) {
		if (bond->params.arp_targets[i]) {
			nla_put_be32(skb, i, bond->params.arp_targets[i]);
			if (nla_put_be32(skb, i, bond->params.arp_targets[i]))
				goto nla_put_failure;
			targets_added = 1;
		}
	}