No need to lock Giant around call to nanosleep1() in nanosleep().

This commit is contained in:
Tim J. Robbins 2003-02-03 15:31:57 +00:00
parent faea679930
commit b338d59fef

View File

@ -294,9 +294,7 @@ nanosleep(struct thread *td, struct nanosleep_args *uap)
if (uap->rmtp &&
!useracc((caddr_t)uap->rmtp, sizeof(rmt), VM_PROT_WRITE))
return (EFAULT);
mtx_lock(&Giant);
error = nanosleep1(td, &rqt, &rmt);
mtx_unlock(&Giant);
if (error && uap->rmtp) {
int error2;