keys: PTR_ERR return of wrong pointer in keyctl_get_security()
commitfa1cc7b5a5c4171dfdcac855428295340ccf87ec
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 15 Dec 2009 23:05:12 +0000 (15 15:05 -0800)
committerJames Morris <jmorris@namei.org>
Wed, 16 Dec 2009 22:23:48 +0000 (17 09:23 +1100)
treeeccd00dd480c980a45159e3964038cee255ff9f8
parentd4220f987cf473c65a342ca69e3eb13dea919a49
keys: PTR_ERR return of wrong pointer in keyctl_get_security()

Return the PTR_ERR of the correct pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/keyctl.c