KEYS: use kvfree() in add_key
authorGeliang Tang <geliangtang@163.com>
Wed, 21 Oct 2015 13:04:46 +0000 (14:04 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 21 Oct 2015 14:18:35 +0000 (15:18 +0100)
commitd0e0eba043c78b1d6ce3d29367abb41446d83747
tree1c86a75564f33450917f0ea9468bc1dd47ef994f
parent09302fd19efbff9569eaad3f78ead8f411defd87
KEYS: use kvfree() in add_key

There is no need to make a flag to tell that this memory is allocated by
kmalloc or vmalloc. Just use kvfree to free the memory.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David Howells <dhowells@redhat.com>
security/keys/keyctl.c