diff options
Diffstat (limited to 'security/keys/keyring.c')
-rw-r--r-- | security/keys/keyring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/keys/keyring.c b/security/keys/keyring.c index 7445875f6818..81e7852d281d 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c | |||
@@ -751,6 +751,7 @@ static void keyring_unlink_rcu_disposal(struct rcu_head *rcu) | |||
751 | int __key_link_begin(struct key *keyring, const struct key_type *type, | 751 | int __key_link_begin(struct key *keyring, const struct key_type *type, |
752 | const char *description, unsigned long *_prealloc) | 752 | const char *description, unsigned long *_prealloc) |
753 | __acquires(&keyring->sem) | 753 | __acquires(&keyring->sem) |
754 | __acquires(&keyring_serialise_link_sem) | ||
754 | { | 755 | { |
755 | struct keyring_list *klist, *nklist; | 756 | struct keyring_list *klist, *nklist; |
756 | unsigned long prealloc; | 757 | unsigned long prealloc; |
@@ -960,6 +961,7 @@ void __key_link(struct key *keyring, struct key *key, | |||
960 | void __key_link_end(struct key *keyring, struct key_type *type, | 961 | void __key_link_end(struct key *keyring, struct key_type *type, |
961 | unsigned long prealloc) | 962 | unsigned long prealloc) |
962 | __releases(&keyring->sem) | 963 | __releases(&keyring->sem) |
964 | __releases(&keyring_serialise_link_sem) | ||
963 | { | 965 | { |
964 | BUG_ON(type == NULL); | 966 | BUG_ON(type == NULL); |
965 | BUG_ON(type->name == NULL); | 967 | BUG_ON(type->name == NULL); |