diff options
author | jhb <jhb@FreeBSD.org> | 2002-02-27 19:09:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-02-27 19:09:30 +0000 |
commit | 522b437ab4bc018275fff572eec5c7e67960543d (patch) | |
tree | db2700eb250db4c0d292f74e01459a27b7d08e62 | |
parent | 3fcf72b6ba1d0b47ab8a97496d7ee803761e8670 (diff) | |
download | FreeBSD-src-522b437ab4bc018275fff572eec5c7e67960543d.zip FreeBSD-src-522b437ab4bc018275fff572eec5c7e67960543d.tar.gz |
Use td_ucred and thus remove now unneeded proc lock acquire and release.
-rw-r--r-- | sys/i386/ibcs2/ibcs2_other.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/ibcs2/ibcs2_other.c b/sys/i386/ibcs2/ibcs2_other.c index 2881f42..95efb74 100644 --- a/sys/i386/ibcs2/ibcs2_other.c +++ b/sys/i386/ibcs2/ibcs2_other.c @@ -50,9 +50,7 @@ ibcs2_secure(struct thread *td, struct ibcs2_secure_args *uap) switch (uap->cmd) { case IBCS2_SECURE_GETLUID: /* get login uid */ - PROC_LOCK(td->td_proc); - td->td_retval[0] = td->td_proc->p_ucred->cr_uid; - PROC_UNLOCK(td->td_proc); + td->td_retval[0] = td->td_ucred->cr_uid; return 0; case IBCS2_SECURE_SETLUID: /* set login uid */ |