diff options
author | 2016-04-14 18:03:29 -0700 | |
---|---|---|
committer | 2016-04-14 18:03:29 -0700 | |
commit | 4c0b1c67c6250be73cedeac935b860e09de4420f (patch) | |
tree | dde83a92187b506a3f88b2e05568884d01cc339a /lib | |
parent | /proc/iomem: only expose physical resource addresses to privileged users (diff) | |
parent | Merge tag 'keys-fixes-20160412' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs into for-linus (diff) | |
download | wireguard-linux-4c0b1c67c6250be73cedeac935b860e09de4420f.tar.xz wireguard-linux-4c0b1c67c6250be73cedeac935b860e09de4420f.zip |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull keys bugfixes from James Morris:
"Two bugfixes for Keys related code"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
ASN.1: fix open failure check on headername
assoc_array: don't call compare_object() on a node
Diffstat (limited to 'lib')
-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]; |