diff options
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 1f938f3dba4b..6d6543e88c2c 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -453,7 +453,7 @@ int tipc_node_get_linkname(u32 bearer_id, u32 addr, char *linkname, size_t len) | |||
453 | struct tipc_link *link; | 453 | struct tipc_link *link; |
454 | struct tipc_node *node = tipc_node_find(addr); | 454 | struct tipc_node *node = tipc_node_find(addr); |
455 | 455 | ||
456 | if ((bearer_id > MAX_BEARERS) || !node) | 456 | if ((bearer_id >= MAX_BEARERS) || !node) |
457 | return -EINVAL; | 457 | return -EINVAL; |
458 | tipc_node_lock(node); | 458 | tipc_node_lock(node); |
459 | link = node->links[bearer_id]; | 459 | link = node->links[bearer_id]; |