diff options
Diffstat (limited to 'security/keys/process_keys.c')
-rw-r--r-- | security/keys/process_keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 2a0eb946fc7e..c886a2bb792a 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c | |||
@@ -660,7 +660,7 @@ key_ref_t lookup_user_key(struct task_struct *context, key_serial_t id, | |||
660 | 660 | ||
661 | key = key_lookup(id); | 661 | key = key_lookup(id); |
662 | if (IS_ERR(key)) { | 662 | if (IS_ERR(key)) { |
663 | key_ref = ERR_PTR(PTR_ERR(key)); | 663 | key_ref = ERR_CAST(key); |
664 | goto error; | 664 | goto error; |
665 | } | 665 | } |
666 | 666 | ||