tipc: fix bug in function tipc_nl_node_dump_monitor
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 25 Apr 2018 16:29:25 +0000 (18:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:50 +0000 (04:02 +0900)
commit5d33c9d0fbd8a5a5f2dfc4affb7f9f97cb86afd0
treefbddc60000a0a35e82f4320904e66a87ef500606
parentf1e5bbe86ec13618fc39d2b01ad166cfa335b488
tipc: fix bug in function tipc_nl_node_dump_monitor

[ Upstream commit 7dbc73e6124ce4d0cfbdd6166de388e9367c47ad ]

Commit 36a50a989ee8 ("tipc: fix infinite loop when dumping link monitor
summary") intended to fix a problem with user tool looping when max
number of bearers are enabled.

Unfortunately, the wrong version of the commit was posted, so the
problem was not solved at all.

This commit adds the missing part.

Fixes: 36a50a989ee8 ("tipc: fix infinite loop when dumping link monitor summary")
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/node.c