Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6-microblaze.git] / drivers / net / bonding / bond_netlink.c
index c502c13..47a8103 100644 (file)
@@ -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;
                }
        }