]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/user.c
kernel/user.c: add lock release annotation on free_user()
[net-next-2.6.git] / kernel / user.c
index 7e72614b736d82dd108d99ab79daefa55e6cdfe3..2c7d8d5914b188be65c36a686a81fba7eed07d8c 100644 (file)
@@ -91,6 +91,7 @@ static struct user_struct *uid_hash_find(uid_t uid, struct hlist_head *hashent)
  * upon function exit.
  */
 static void free_user(struct user_struct *up, unsigned long flags)
+       __releases(&uidhash_lock)
 {
        uid_hash_remove(up);
        spin_unlock_irqrestore(&uidhash_lock, flags);