mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337123
@ -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