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:
avg 2018-08-02 09:41:55 +00:00
parent bc0d1a1d0e
commit d9bc6597cf

View File

@ -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);
}