diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_xxx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index f3d81544c184..47988da5c8b0 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -144,11 +144,12 @@ osethostid(td, uap) { int error; - mtx_lock(&Giant); if ((error = suser(td))) - hostid = uap->hostid; + return (error); + mtx_lock(&Giant); + hostid = uap->hostid; mtx_unlock(&Giant); - return (error); + return (0); } /* |