Date: Fri, 23 Feb 2007 16:37:42 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 114872 for review Message-ID: <200702231637.l1NGbgZm031628@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114872 Change 114872 by millert@millert_macbook on 2007/02/23 16:37:01 In ipc_right_copyin() we have the source space locked so just get the task reference from it directly instead of calling current_task(). Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ipc/ipc_kmsg.c#7 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ipc/ipc_kmsg.c#7 (text+ko) ==== @@ -1120,7 +1120,7 @@ goto invalid_dest; ip_lock(port); if (ip_active(port)) { - task_t self = current_task(); + task_t self = space->is_task; tasklabel_lock(self); error = mac_port_check_send(&self->maclabel, &port->ip_label);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702231637.l1NGbgZm031628>