1
0
Fork 0

tipc: fix bug in function tipc_nl_node_dump_monitor

[ Upstream commit 7dbc73e612 ]

Commit 36a50a989e ("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: 36a50a989e ("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>
pull/10/head
Jon Maloy 2018-04-25 18:29:25 +02:00 committed by Greg Kroah-Hartman
parent f1e5bbe86e
commit 5d33c9d0fb
1 changed files with 1 additions and 1 deletions

View File

@ -2125,7 +2125,7 @@ int tipc_nl_node_dump_monitor(struct sk_buff *skb, struct netlink_callback *cb)
rtnl_lock();
for (bearer_id = prev_bearer; bearer_id < MAX_BEARERS; bearer_id++) {
err = __tipc_nl_add_monitor(net, &msg, prev_bearer);
err = __tipc_nl_add_monitor(net, &msg, bearer_id);
if (err)
break;
}