uids: merge multiple error paths in alloc_uid() into one
authorPavel Emelyanov <xemul@openvz.org>
Fri, 25 Jan 2008 20:08:26 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:26 +0000 (21:08 +0100)
commit8eb703e4f33488bf75829564d51d427e17f7cd4c
treeee520bf5f1b6c5b61f3b2b6b950ecb4108fc22fc
parentdc938520d2bf343b239795cfa24e4f44649358dc
uids: merge multiple error paths in alloc_uid() into one

There are already 4 error paths in alloc_uid() that do incremental rollbacks.
I think it's time to merge them.  This costs us 8 lines of code :)

Maybe it would be better to merge this patch with the previous one, but I
remember that some time ago I sent a similar patch (fixing the error path and
cleaning it), but I was told to make two patches in such cases.

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