fix a typo resulting in a wrong variable in kern_syscall_deregister
The difference is between sysent, a global, and sysents, a function parameter.
This commit is contained in:
parent
bc0d1a1d0e
commit
d9bc6597cf
@ -148,7 +148,7 @@ kern_syscall_deregister(struct sysent *sysents, int offset,
|
||||
if ((se->sy_thrcnt & SY_THR_STATIC) != 0)
|
||||
return (EINVAL);
|
||||
syscall_thread_drain(se);
|
||||
sysent[offset] = *old_sysent;
|
||||
sysents[offset] = *old_sysent;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user