mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
KEYS: Announce key type (un)registration
Announce the (un)registration of a key type in the core key code rather than in the callers. Signed-off-by: David Howells <[email protected]> Acked-by: Mimi Zohar <[email protected]>
This commit is contained in:
parent
9f7ce8e249
commit
1eb1bcf5bf
2 changed files with 3 additions and 5 deletions
|
|
@ -980,6 +980,8 @@ int register_key_type(struct key_type *ktype)
|
|||
|
||||
/* store the type */
|
||||
list_add(&ktype->link, &key_types_list);
|
||||
|
||||
pr_notice("Key type %s registered\n", ktype->name);
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
|
|
@ -1002,6 +1004,7 @@ void unregister_key_type(struct key_type *ktype)
|
|||
list_del_init(&ktype->link);
|
||||
downgrade_write(&key_types_sem);
|
||||
key_gc_keytype(ktype);
|
||||
pr_notice("Key type %s unregistered\n", ktype->name);
|
||||
up_read(&key_types_sem);
|
||||
}
|
||||
EXPORT_SYMBOL(unregister_key_type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue