diff options
Diffstat (limited to 'security/keys/keyctl.c')
-rw-r--r-- | security/keys/keyctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 56e963b700b9..993be634a5ef 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c | |||
@@ -112,7 +112,8 @@ asmlinkage long sys_add_key(const char __user *_type, | |||
112 | /* create or update the requested key and add it to the target | 112 | /* create or update the requested key and add it to the target |
113 | * keyring */ | 113 | * keyring */ |
114 | key_ref = key_create_or_update(keyring_ref, type, description, | 114 | key_ref = key_create_or_update(keyring_ref, type, description, |
115 | payload, plen, KEY_ALLOC_IN_QUOTA); | 115 | payload, plen, KEY_PERM_UNDEF, |
116 | KEY_ALLOC_IN_QUOTA); | ||
116 | if (!IS_ERR(key_ref)) { | 117 | if (!IS_ERR(key_ref)) { |
117 | ret = key_ref_to_ptr(key_ref)->serial; | 118 | ret = key_ref_to_ptr(key_ref)->serial; |
118 | key_ref_put(key_ref); | 119 | key_ref_put(key_ref); |