]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/user.c: add lock release annotation on free_user()
authorNamhyung Kim <namhyung@gmail.com>
Fri, 11 Feb 2011 06:07:01 +0000 (07:07 +0100)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:02 +0000 (11:58 -0700)
commitcec5d24f1ce6c52f5d2ed93b845e0de40127c88c
tree3ee28a697a63a24643973b76f1e8a75d188740ea
parent118de48b5183dbb3d6281302528ad1a93624854f
kernel/user.c: add lock release annotation on free_user()

commit 571428be550fbe37160596995e96ad398873fcbd upstream.

free_user() releases uidhash_lock but was missing annotation.  Add it.
This removes following sparse warnings:

 include/linux/spinlock.h:339:9: warning: context imbalance in 'free_user' - unexpected unlock
 kernel/user.c:120:6: warning: context imbalance in 'free_uid' - wrong count at exit

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Dhaval Giani <dhaval.giani@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/user.c