changeset 14093:9862ed87f009

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>
author Bryan Cantrill <bryan@joyent.com>
date Thu, 18 Apr 2013 21:13:29 +0000
parents d5286cdcaa9a
children 8a2884391fc2
files usr/src/uts/common/syscall/tasksys.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/syscall/tasksys.c	Tue May 21 21:36:47 2013 +0200
+++ b/usr/src/uts/common/syscall/tasksys.c	Thu Apr 18 21:13:29 2013 +0000
@@ -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 @@
 		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;