PERFORCE change 114872 for review
Todd Miller
millert at FreeBSD.org
Fri Feb 23 16:37:43 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=114872
Change 114872 by millert at 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);
More information about the p4-projects
mailing list