KEYS: Return more accurate error codes
authorDan Carpenter <error27@gmail.com>
Mon, 17 May 2010 13:42:35 +0000 (14:42 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 17 May 2010 22:50:55 +0000 (08:50 +1000)
commit4d09ec0f705cf88a12add029c058b53f288cfaa2
treed756921f5391953295404ccf3ba570ddaaca404f
parentc80901f2755c582e3096e6708028a8daca59e6e2
KEYS: Return more accurate error codes

We were using the wrong variable here so the error codes weren't being returned
properly.  The original code returns -ENOKEY.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/process_keys.c