diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 07:21:28 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 07:21:28 +0000 |
commit | 553bb6fdc875e9e146f3f4e5d876bc05af6ad662 (patch) | |
tree | 1cb30ee1ef213fb56f010205148d9f82e56cfcc5 /sys/kern/kern_sysctl.c | |
parent | 2ae5c2c1520f61cf73ab48fa67d77dc3d2e998ce (diff) |
uvm_useracc is not necessary now that uvm_vslock knows how to fail.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 5 |
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) |