* [PATCH] bonding: check nla_put_be32 return value
@ 2017-05-06 3:17 Hangbin Liu
2017-05-08 18:57 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Hangbin Liu @ 2017-05-06 3:17 UTC (permalink / raw)
To: netdev; +Cc: Hangbin Liu
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
drivers/net/bonding/bond_netlink.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index c502c13..47a8103 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -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;
}
}
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bonding: check nla_put_be32 return value
2017-05-06 3:17 [PATCH] bonding: check nla_put_be32 return value Hangbin Liu
@ 2017-05-08 18:57 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-05-08 18:57 UTC (permalink / raw)
To: liuhangbin; +Cc: netdev
From: Hangbin Liu <liuhangbin@gmail.com>
Date: Sat, 6 May 2017 11:17:06 +0800
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-08 18:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-06 3:17 [PATCH] bonding: check nla_put_be32 return value Hangbin Liu
2017-05-08 18:57 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).