aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/keys/key.c')
-rw-r--r--security/keys/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index 14948cf83ef6..a6ca39ed3b0e 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -802,7 +802,7 @@ key_ref_t key_create_or_update(key_ref_t keyring_ref,
802 } 802 }
803 803
804 /* allocate a new key */ 804 /* allocate a new key */
805 key = key_alloc(ktype, description, current->fsuid, current->fsgid, 805 key = key_alloc(ktype, description, current_fsuid(), current_fsgid(),
806 current, perm, flags); 806 current, perm, flags);
807 if (IS_ERR(key)) { 807 if (IS_ERR(key)) {
808 key_ref = ERR_CAST(key); 808 key_ref = ERR_CAST(key);