summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2013-04-18 21:13:29 +0000
committerRobert Mustacchi <rm@joyent.com>2013-07-29 11:46:50 -0700
commit74bf729631d9843cabb29019f16ac648de4aaa80 (patch)
treefa562c6cc14319afb8f007c1397180ec30b78560 /usr
parenteb341807e07639369211020c815f2b9002798a8a (diff)
downloadillumos-joyent-74bf729631d9843cabb29019f16ac648de4aaa80.tar.gz
3934 project reference count leak in tasksys_settaskid()
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Marcel Telka <Marcel.Telka@nexenta.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr')
-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;