Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145597217
D54326.1778268691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
485 B
Referenced Files
None
Subscribers
None
D54326.1778268691.diff
View Options
diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c
--- a/sys/kern/kern_syscalls.c
+++ b/sys/kern/kern_syscalls.c
@@ -161,8 +161,14 @@
{
struct sysent *se;
- if (offset == 0)
- return (0); /* XXX? */
+ if (offset == 0) {
+ /*
+ * Syscall #0 is reserved and is not dynamically registered.
+ * Treat deregistration as a no-op to simplify module unload
+ * paths.
+ */
+ return (0);
+ }
se = &sysents[offset];
if ((se->sy_thrcnt & SY_THR_STATIC) != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 8, 7:31 PM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28612491
Default Alt Text
D54326.1778268691.diff (485 B)
Attached To
Mode
D54326: kern: document no-op handling of syscall number 0 during deregistration
Attached
Detach File
Event Timeline
Log In to Comment