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)
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

Simple merge
Simple merge
Simple merge
Simple merge