summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-02-22 13:47:56 -0800
committerDavid S. Miller <davem@davemloft.net>2015-02-22 17:00:08 -0500
commit92b839175064632813a7c4b7e180efde4c08c850 (patch)
tree1268a6e6963ecb33afbf924a3d3c80b91960aa36 /net
parent059a2440fd3cf4ec57735db2c0a90401cde84fca (diff)
downloadop-kernel-dev-92b839175064632813a7c4b7e180efde4c08c850.zip
op-kernel-dev-92b839175064632813a7c4b7e180efde4c08c850.tar.gz
batman-adv: Fix use of seq_has_overflowed()
net-next commit 6d91147d183c ("batman-adv: Remove uses of return value of seq_printf") incorrectly changed the overflow occurred return from -1 to 1. Change it back so that the test of batadv_write_buffer_text's return value in batadv_gw_client_seq_print_text works properly. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/gateway_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c
index a0876ea..090828c 100644
--- a/net/batman-adv/gateway_client.c
+++ b/net/batman-adv/gateway_client.c
@@ -601,7 +601,7 @@ static int batadv_write_buffer_text(struct batadv_priv *bat_priv,
gw_node->bandwidth_down % 10,
gw_node->bandwidth_up / 10,
gw_node->bandwidth_up % 10);
- ret = seq_has_overflowed(seq);
+ ret = seq_has_overflowed(seq) ? -1 : 0;
if (curr_gw)
batadv_gw_node_free_ref(curr_gw);
OpenPOWER on IntegriCloud