diff options
author | 2016-05-17 21:12:50 -0400 | |
---|---|---|
committer | 2016-05-17 21:12:50 -0400 | |
commit | e7ca7f9fa2cda220ba807620c992ce77c33a32ea (patch) | |
tree | fb8a6c1abc638c5a79645f4b9f44ece7c67187b4 /lib/assoc_array.c | |
parent | mpt3sas: Used "synchronize_irq()"API to synchronize timed-out IO & TMs (diff) | |
parent | Revert "lpfc: Delete unnecessary checks before the function call mempool_destroy" (diff) | |
download | wireguard-linux-e7ca7f9fa2cda220ba807620c992ce77c33a32ea.tar.xz wireguard-linux-e7ca7f9fa2cda220ba807620c992ce77c33a32ea.zip |
Merge branch 'fixes' into misc
Diffstat (limited to '')
-rw-r--r-- | lib/assoc_array.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/assoc_array.c b/lib/assoc_array.c index 03dd576e6773..59fd7c0b119c 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c @@ -524,7 +524,9 @@ static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, free_slot = i; continue; } - if (ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) { + if (assoc_array_ptr_is_leaf(ptr) && + ops->compare_object(assoc_array_ptr_to_leaf(ptr), + index_key)) { pr_devel("replace in slot %d\n", i); edit->leaf_p = &node->slots[i]; edit->dead_leaf = node->slots[i]; |