KEYS: use kmemdup() in request_key_auth_new()
authorEric Biggers <ebiggers@google.com>
Thu, 21 Sep 2017 20:57:42 +0000 (13:57 -0700)
committerDavid Howells <dhowells@redhat.com>
Mon, 25 Sep 2017 14:19:57 +0000 (15:19 +0100)
commite007ce9c59bddd1e67b94bc29036d920f5c5428a
tree19bbe9dc2f0df9bc1c423a9e01c9383627aeb18e
parent4aa68e07d845562561f5e73c04aa521376e95252
KEYS: use kmemdup() in request_key_auth_new()

kmemdup() is preferred to kmalloc() followed by memcpy().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
security/keys/request_key_auth.c