Message ID | 1459977699-2349-12-git-send-email-willy@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 42a0492b2ba2..554986599c63 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -1557,7 +1557,7 @@ void *radix_tree_delete_item(struct radix_tree_root *root, return entry; } - offset = index & RADIX_TREE_MAP_MASK; + offset = get_sibling_offset(node, slot); /* * Clear all tags associated with the item to be deleted.