* [PATCH] keys: PTR_ERR return of wrong pointer in keyctl_get_security()
@ 2009-12-07 13:25 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-12-07 13:25 UTC (permalink / raw)
To: James Morris, Andrew Morton, LKML; +Cc: linux-security-module
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
security/keys/keyctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index 06ec722..5f830bc 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -1194,7 +1194,7 @@ long keyctl_get_security(key_serial_t keyid,
* have the authorisation token handy */
instkey = key_get_instantiation_authkey(keyid);
if (IS_ERR(instkey))
- return PTR_ERR(key_ref);
+ return PTR_ERR(instkey);
key_put(instkey);
key_ref = lookup_user_key(keyid, KEY_LOOKUP_PARTIAL, 0);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-07 13:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 13:25 [PATCH] keys: PTR_ERR return of wrong pointer in keyctl_get_security() Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox