]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56c03dad142424e600cbd5a9276099d7384e0878
tree1c86a75564f33450917f0ea9468bc1dd47ef994f
parenta4056dbd338d4a56a55e39a43aaf2f4e2c3c7f01
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