]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix packets_per_slave showing
authorNikolay Aleksandrov <nikolay@redhat.com>
Thu, 5 Dec 2013 10:36:58 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 20:16:51 +0000 (15:16 -0500)
commit24a5a03fd9969f7464b03cf816c602a040561b10
tree7c20a191a5dca36ef7f9338803d13666376a3883
parent002a93b58a25a02be6b498d5513591a4adf954a6
bonding: fix packets_per_slave showing

There's an issue when showing the value of packets_per_slave due to
using signed integer. The value may be < 0 and thus not put through
reciprocal_value() before showing. This patch makes it use unsigned
integer when showing it.

CC: Andy Gospodarek <andy@greyhouse.net>
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Veaceslav Falico <vfalico@redhat.com>
CC: David S. Miller <davem@davemloft.net>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c