diff options
author | David Howells <dhowells@redhat.com> | 2008-08-11 01:21:10 +0100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-08-11 10:31:28 +1000 |
commit | 27afc2b247cc308745a4be755df45e0127fff010 (patch) | |
tree | 17d1410aa310ee0d699bace0e7376e37e08cc2cf /kernel | |
parent | 293f28d5b02efe4504d5976f6f5889458ed56539 (diff) |
CRED: Inc the user processes count on cred share return from copy_creds()
Increment the user processes count in the case where copy_creds() returns after
sharing the parent's credentials instead of allocating new ones.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cred.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cred.c b/kernel/cred.c index d91cb06a194e..ae96e28cfe12 100644 --- a/kernel/cred.c +++ b/kernel/cred.c @@ -299,6 +299,7 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags) #endif p->real_cred = get_cred(p->cred); get_cred(p->cred); + atomic_inc(&p->cred->user->processes); return 0; } |