summaryrefslogtreecommitdiff
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-03-17 07:01:42 +0000
committerAlan Cox <alc@FreeBSD.org>2002-03-17 07:01:42 +0000
commit5ee9fe6ba1ff1afe1046cd813fe01421ab561238 (patch)
tree4662851f9eaff15d22d84be0cc5d4a593d10e5c0 /sys/vm/vm_glue.c
parentc4269c63a2655e3b5237233e95c6c2b2a8421e32 (diff)
Notes
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 3263180e5b59..75bd9b42f847 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -139,8 +139,6 @@ useracc(addr, len, rw)
{
boolean_t rv;
vm_prot_t prot;
- vm_map_t map;
- vm_map_entry_t save_hint;
GIANT_REQUIRED;
@@ -160,17 +158,9 @@ useracc(addr, len, rw)
|| (vm_offset_t) addr + len < (vm_offset_t) addr) {
return (FALSE);
}
- map = &curproc->p_vmspace->vm_map;
-
- /*
- * We save the map hint, and restore it. Useracc appears to distort
- * the map hint unnecessarily.
- */
- save_hint = map->hint;
- rv = vm_map_check_protection(map,
- trunc_page((vm_offset_t)addr), round_page((vm_offset_t)addr + len), prot);
- map->hint = save_hint;
-
+ rv = vm_map_check_protection(&curproc->p_vmspace->vm_map,
+ trunc_page((vm_offset_t)addr), round_page((vm_offset_t)addr + len),
+ prot);
return (rv == TRUE);
}