summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2006-11-18 10:12:43 +0000
committerkib <kib@FreeBSD.org>2006-11-18 10:12:43 +0000
commit45a4640ae74f704906011876d1d2be1112c1778c (patch)
tree4bee6747113b31349262b81207519d7b76ce1775 /sys/compat/linux/linux_misc.c
parent6c32a5ad0fca67aa2a16e19566f53786fe599675 (diff)
downloadFreeBSD-src-45a4640ae74f704906011876d1d2be1112c1778c.zip
FreeBSD-src-45a4640ae74f704906011876d1d2be1112c1778c.tar.gz
Remove unecessary locking of process in linux_getpid.
Suggested by: jhb Submitted by: rdivacky
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 2ac2f0b..4db783d 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1385,9 +1385,7 @@ linux_getpid(struct thread *td, struct linux_getpid_args *args)
td->td_retval[0] = em->shared->group_pid;
EMUL_UNLOCK(&emul_lock);
} else {
- PROC_LOCK(td->td_proc);
td->td_retval[0] = td->td_proc->p_pid;
- PROC_UNLOCK(td->td_proc);
}
return (0);
OpenPOWER on IntegriCloud