Skip to content

Commit 7dbc73e

Browse files
Jon Maloydavem330
authored andcommitted
tipc: fix bug in function tipc_nl_node_dump_monitor
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 25eb0ea commit 7dbc73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/tipc/node.c

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

22452245
rtnl_lock();
22462246
for (bearer_id = prev_bearer; bearer_id < MAX_BEARERS; bearer_id++) {
2247-
err = __tipc_nl_add_monitor(net, &msg, prev_bearer);
2247+
err = __tipc_nl_add_monitor(net, &msg, bearer_id);
22482248
if (err)
22492249
break;
22502250
}

0 commit comments

Comments
 (0)