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:
Andriy Gapon 2018-08-02 09:41:55 +00:00
parent 711a4538f8
commit a260971458

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