aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/radix-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/radix-tree.c b/lib/radix-tree.c
index 7cbdada51049..b32efae7688e 100644
--- a/lib/radix-tree.c
+++ b/lib/radix-tree.c
@@ -389,8 +389,7 @@ void *radix_tree_tag_set(struct radix_tree_root *root,
389 struct radix_tree_node *slot; 389 struct radix_tree_node *slot;
390 390
391 height = root->height; 391 height = root->height;
392 if (index > radix_tree_maxindex(height)) 392 BUG_ON(index > radix_tree_maxindex(height));
393 return NULL;
394 393
395 slot = root->rnode; 394 slot = root->rnode;
396 shift = (height - 1) * RADIX_TREE_MAP_SHIFT; 395 shift = (height - 1) * RADIX_TREE_MAP_SHIFT;