]> git.baikalelectronics.ru Git - kernel.git/commit
sched: don't forget to unlock uids_mutex on error paths
authorPavel Emelyanov <xemul@openvz.org>
Mon, 26 Nov 2007 20:21:49 +0000 (21:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 26 Nov 2007 20:21:49 +0000 (21:21 +0100)
commite8f491bfd1c0035414f5f0e8ef4b5c25a3507c25
tree5ce6e7b25ffb2c78bb876861e4b0c83fd6f9b565
parentd449047ea7b2b6076edca7bc91451f01ea179947
sched: don't forget to unlock uids_mutex on error paths

The commit

 commit 996793b14ed6a0f84e0f591926c2b9106776a60b
 Author: Dhaval Giani <dhaval@linux.vnet.ibm.com>
 Date:   Mon Oct 15 17:00:14 2007 +0200

    sched: group scheduling, sysfs tunables

introduced the uids_mutex and the helpers to lock/unlock it.
Unfortunately, the error paths of alloc_uid() were not patched
to unlock it.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/user.c