diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/key.c | 2 | ||||
-rw-r--r-- | security/keys/process_keys.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/keys/key.c b/security/keys/key.c index 3304d37bb379..fb89f9844465 100644 --- a/security/keys/key.c +++ b/security/keys/key.c | |||
@@ -980,7 +980,7 @@ void unregister_key_type(struct key_type *ktype) | |||
980 | spin_unlock(&key_serial_lock); | 980 | spin_unlock(&key_serial_lock); |
981 | 981 | ||
982 | /* make sure everyone revalidates their keys */ | 982 | /* make sure everyone revalidates their keys */ |
983 | synchronize_kernel(); | 983 | synchronize_rcu(); |
984 | 984 | ||
985 | /* we should now be able to destroy the payloads of all the keys of | 985 | /* we should now be able to destroy the payloads of all the keys of |
986 | * this type with impunity */ | 986 | * this type with impunity */ |
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 34db087bbcc7..9b0369c5a223 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c | |||
@@ -234,7 +234,7 @@ static int install_session_keyring(struct task_struct *tsk, | |||
234 | ret = 0; | 234 | ret = 0; |
235 | 235 | ||
236 | /* we're using RCU on the pointer */ | 236 | /* we're using RCU on the pointer */ |
237 | synchronize_kernel(); | 237 | synchronize_rcu(); |
238 | key_put(old); | 238 | key_put(old); |
239 | error: | 239 | error: |
240 | return ret; | 240 | return ret; |