mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
bonding: check nla_put_be32 return value
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ac45bd93a5
commit
d62844a825
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user