summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sysctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index be8b7cebd91..57ab8fd74fc 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.52 2001/06/27 04:49:46 art Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.53 2001/06/27 07:21:27 art Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -177,9 +177,6 @@ sys___sysctl(p, v, retval)
(error = copyin(SCARG(uap, oldlenp), &oldlen, sizeof(oldlen))))
return (error);
if (SCARG(uap, old) != NULL) {
- /* XXX - obsolete now that vslock returns an error? */
- if (!uvm_useracc(SCARG(uap, old), oldlen, B_WRITE))
- return (EFAULT);
if ((error = lockmgr(&sysctl_lock, LK_EXCLUSIVE, NULL, p)) != 0)
return (error);
if (dolock)