projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac45bd9
)
bonding: check nla_put_be32 return value
author
Hangbin Liu
<liuhangbin@gmail.com>
Sat, 6 May 2017 03:17:06 +0000
(11:17 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 May 2017 18:57:05 +0000
(14:57 -0400)
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bonding/bond_netlink.c
b/drivers/net/bonding/bond_netlink.c
index c502c139d3bc6b50eafddc257a60e43ae8100ed0..47a8103610bc9111646f9bbf12b45f1fc4ed0115 100644
(file)
--- 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;
}
}