projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ca1de
)
bonding: fix kstrtou8() return value verification in num_peer_notif
author
Veaceslav Falico
<
[email protected]
>
Mon, 6 Jan 2014 10:54:40 +0000
(11:54 +0100)
committer
David S. Miller
<
[email protected]
>
Mon, 6 Jan 2014 21:26:00 +0000
(16:26 -0500)
It returns 0 in case of success, !0 error otherwise. Fix the improper error
verification.
Fixes: 2c9839c143bbc ("bonding: add num_grat_arp attribute netlink support")
CC:
[email protected]
CC: Jay Vosburgh <
[email protected]
>
CC: Andy Gospodarek <
[email protected]
>
Signed-off-by: Veaceslav Falico <
[email protected]
>
Acked-by: Scott Feldman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bonding/bond_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_sysfs.c
b/drivers/net/bonding/bond_sysfs.c
index 9a1ea4a171c7ca5a81aba63e97bc4bec5edbc5aa..011f163c2c6771a9cbd335a507dfb390b081eca2 100644
(file)
--- a/
drivers/net/bonding/bond_sysfs.c
+++ b/
drivers/net/bonding/bond_sysfs.c
@@
-776,7
+776,7
@@
static ssize_t bonding_store_num_peer_notif(struct device *d,
int ret;
ret = kstrtou8(buf, 10, &new_value);
- if (
!
ret) {
+ if (ret) {
pr_err("%s: invalid value %s specified.\n",
bond->dev->name, buf);
return ret;