suser is Giant safe, so optimize a pointless case.
This commit is contained in:
parent
3c8451c966
commit
3bdd2d061a
@ -909,10 +909,10 @@ adjtime(struct thread *td, struct adjtime_args *uap)
|
||||
struct timeval atv;
|
||||
int error;
|
||||
|
||||
mtx_lock(&Giant);
|
||||
|
||||
if ((error = suser(td)))
|
||||
goto done2;
|
||||
return (error);
|
||||
|
||||
mtx_lock(&Giant);
|
||||
if (uap->olddelta) {
|
||||
atv.tv_sec = time_adjtime / 1000000;
|
||||
atv.tv_usec = time_adjtime % 1000000;
|
||||
|
Loading…
Reference in New Issue
Block a user