summaryrefslogtreecommitdiff
path: root/crypto/scatterwalk.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2015-02-11 07:33:34 -0500
committerMimi Zohar <zohar@linux.vnet.ibm.com>2015-05-21 13:58:59 -0400
commit5dbb8342ac31e3bdf049b589f074bc47a0be047e (patch)
tree646c2e7cba28db0fe62c450968460601e72d215e /crypto/scatterwalk.c
parent0f792db0c4f74e99a1a9ccc6694abf60c4b41a5a (diff)
downloadlinux-crypto-5dbb8342ac31e3bdf049b589f074bc47a0be047e.tar.gz
linux-crypto-5dbb8342ac31e3bdf049b589f074bc47a0be047e.zip
KEYS: fix "ca_keys=" partial key matching
The call to asymmetric_key_hex_to_key_id() from ca_keys_setup() silently fails with -ENOMEM. Instead of dynamically allocating memory from a __setup function, this patch defines a variable and calls __asymmetric_key_hex_to_key_id(), a new helper function, directly. This bug was introduced by 'commit 517fcc6309ae ("KEYS: Overhaul key identification when searching for asymmetric keys")'. Changelog: - for clarification, rename hexlen to asciihexlen in asymmetric_key_hex_to_key_id() - add size argument to __asymmetric_key_hex_to_key_id() - David Howells - inline __asymmetric_key_hex_to_key_id() - David Howells - remove duplicate strlen() calls Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Cc: stable@vger.kernel.org # 3.18
Diffstat (limited to 'crypto/scatterwalk.c')
0 files changed, 0 insertions, 0 deletions