KEYS: Better handling of errors from construct_alloc_key()
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Apr 2010 13:32:34 +0000 (14:32 +0100)
committerJames Morris <jmorris@namei.org>
Thu, 6 May 2010 00:56:55 +0000 (10:56 +1000)
Errors from construct_alloc_key() shouldn't just be ignored in the way they are
by construct_key_and_link().  The only error that can be ignored so is
EINPROGRESS as that is used to indicate that we've found a key and don't need
to construct one.

We don't, however, handle ENOMEM, EDQUOT or EACCES to indicate allocation
failures of one sort or another.

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found