KEYS: Do preallocation for __key_link()
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Apr 2010 13:32:39 +0000 (14:32 +0100)
committerJames Morris <jmorris@namei.org>
Thu, 6 May 2010 12:25:02 +0000 (22:25 +1000)
commitf70e2e06196ad4c1c762037da2f75354f6c16b81
tree9632a1e655efb684c87f8c7be6d091fbb1a430e7
parent043b4d40f53131c5f72eca2a46555fe35328a930
KEYS: Do preallocation for __key_link()

Do preallocation for __key_link() so that the various callers in request_key.c
can deal with any errors from this source before attempting to construct a key.
This allows them to assume that the actual linkage step is guaranteed to be
successful.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/internal.h
security/keys/key.c
security/keys/keyring.c
security/keys/request_key.c