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
711a4538f8
commit
a260971458
@ -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