No need to lock Giant around call to nanosleep1() in nanosleep().
This commit is contained in:
parent
faea679930
commit
b338d59fef
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user