]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix kstrtou8() return value verification in num_peer_notif
authorVeaceslav Falico <vfalico@redhat.com>
Mon, 6 Jan 2014 10:54:40 +0000 (11:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2014 21:26:00 +0000 (16:26 -0500)
commit59eb4a114d47f8e5c05d6f3508dda836c2c2b556
tree2584688737f876308999ee333925b06488303ae8
parent984f73afb0606bea1d3372301289c8a32e26c74d
bonding: fix kstrtou8() return value verification in num_peer_notif

It returns 0 in case of success, !0 error otherwise. Fix the improper error
verification.

Fixes: 34d3a7910f0c2 ("bonding: add num_grat_arp attribute netlink support")
CC: sfeldma@cumulusnetworks.com
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c