Skip to content

Commit 5d33c9d

Browse files
Jon Maloygregkh
authored andcommitted
tipc: fix bug in function tipc_nl_node_dump_monitor
[ Upstream commit 7dbc73e ] Commit 36a50a9 ("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: 36a50a9 ("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>
1 parent f1e5bbe commit 5d33c9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/tipc/node.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,7 @@ int tipc_nl_node_dump_monitor(struct sk_buff *skb, struct netlink_callback *cb)
21252125

21262126
rtnl_lock();
21272127
for (bearer_id = prev_bearer; bearer_id < MAX_BEARERS; bearer_id++) {
2128-
err = __tipc_nl_add_monitor(net, &msg, prev_bearer);
2128+
err = __tipc_nl_add_monitor(net, &msg, bearer_id);
21292129
if (err)
21302130
break;
21312131
}

0 commit comments

Comments
 (0)