svn commit: r337123 - head/sys/kern
Andriy Gapon
avg at FreeBSD.org
Thu Aug 2 09:41:56 UTC 2018
Author: avg
Date: Thu Aug 2 09:41:55 2018
New Revision: 337123
URL: https://svnweb.freebsd.org/changeset/base/337123
Log:
fix a typo resulting in a wrong variable in kern_syscall_deregister
The difference is between sysent, a global, and sysents, a function
parameter.
Modified:
head/sys/kern/kern_syscalls.c
Modified: head/sys/kern/kern_syscalls.c
==============================================================================
--- head/sys/kern/kern_syscalls.c Thu Aug 2 09:31:50 2018 (r337122)
+++ head/sys/kern/kern_syscalls.c Thu Aug 2 09:41:55 2018 (r337123)
@@ -148,7 +148,7 @@ kern_syscall_deregister(struct sysent *sysents, int of
if ((se->sy_thrcnt & SY_THR_STATIC) != 0)
return (EINVAL);
syscall_thread_drain(se);
- sysent[offset] = *old_sysent;
+ sysents[offset] = *old_sysent;
return (0);
}
More information about the svn-src-head
mailing list