summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/tasksys.c
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2013-04-18 21:13:29 +0000
committerBryan Cantrill <bryan@joyent.com>2013-04-18 21:13:29 +0000
commitd9c3eca86271fec80f0c34d21b6f778f0db0ee8c (patch)
tree2a21c2ce022f729dd3607d3c0a50c0c07d8752fc /usr/src/uts/common/syscall/tasksys.c
parent5be643a01102f085b0651abffcc0da87fd1f238e (diff)
downloadillumos-joyent-d9c3eca86271fec80f0c34d21b6f778f0db0ee8c.tar.gz
OS-2150 project reference count leak in tasksys_settaskid()20130418release-20130418
Diffstat (limited to 'usr/src/uts/common/syscall/tasksys.c')
-rw-r--r--usr/src/uts/common/syscall/tasksys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/tasksys.c b/usr/src/uts/common/syscall/tasksys.c
index bbaaba9f5d..c3aa187d08 100644
--- a/usr/src/uts/common/syscall/tasksys.c
+++ b/usr/src/uts/common/syscall/tasksys.c
@@ -22,6 +22,9 @@
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ */
/*
* System calls for creating and inquiring about tasks and projects
@@ -146,6 +149,7 @@ tasksys_settaskid(projid_t projid, uint_t flags)
if (curthread != p->p_agenttp)
continuelwps(p);
mutex_exit(&p->p_lock);
+ project_rele(kpj);
return (set_errno(EAGAIN));
}
kpj->kpj_data.kpd_crypto_mem += p->p_crypto_mem;