summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/compat/svr4/svr4_filio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c
index 58c6417..ca85653 100644
--- a/sys/compat/svr4/svr4_filio.c
+++ b/sys/compat/svr4/svr4_filio.c
@@ -64,12 +64,8 @@ svr4_sys_poll(td, uap)
int idx = 0, cerr;
u_long siz;
- PROC_LOCK(td->td_proc);
- if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE) {
- PROC_UNLOCK(td->td_proc);
+ if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE)
return (EINVAL);
- }
- PROC_UNLOCK(td->td_proc);
pa.fds = uap->fds;
pa.nfds = uap->nfds;
OpenPOWER on IntegriCloud