bonding: fix packets_per_slave showing
authorNikolay Aleksandrov <[email protected]>
Thu, 5 Dec 2013 10:36:58 +0000 (11:36 +0100)
committerDavid S. Miller <[email protected]>
Fri, 6 Dec 2013 20:16:51 +0000 (15:16 -0500)
commita752a8b94da4865d9c361c16ccf7ccb2994291dd
tree7c20a191a5dca36ef7f9338803d13666376a3883
parentb05004adf9d34e7fb8e96fe6a7cdeb0843f5ab35
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 <[email protected]>
CC: Jay Vosburgh <[email protected]>
CC: Veaceslav Falico <[email protected]>
CC: David S. Miller <[email protected]>
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Acked-by: Veaceslav Falico <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bonding/bond_sysfs.c