Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 09:41:56 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337123 - head/sys/kern
Message-ID:  <201808020941.w729fuqP086418@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020941.w729fuqP086418>