aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/name_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/name_table.c')
-rw-r--r--net/tipc/name_table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index e01c9c691ba2..6772390fcb00 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -473,8 +473,7 @@ struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type,
473 struct name_seq *seq = nametbl_find_seq(net, type); 473 struct name_seq *seq = nametbl_find_seq(net, type);
474 int index = hash(type); 474 int index = hash(type);
475 475
476 if ((scope < TIPC_ZONE_SCOPE) || (scope > TIPC_NODE_SCOPE) || 476 if (scope > TIPC_NODE_SCOPE || lower > upper) {
477 (lower > upper)) {
478 pr_debug("Failed to publish illegal {%u,%u,%u} with scope %u\n", 477 pr_debug("Failed to publish illegal {%u,%u,%u} with scope %u\n",
479 type, lower, upper, scope); 478 type, lower, upper, scope);
480 return NULL; 479 return NULL;