summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index aafa26a..27a1ae3 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -346,7 +346,7 @@ mmap(td, uap)
* other securelevel.
* XXX this will have to go
*/
- if (securelevel_ge(td->td_proc->p_ucred, 1))
+ if (securelevel_ge(td->td_ucred, 1))
disablexworkaround = 1;
else
disablexworkaround = suser_td(td);
@@ -387,7 +387,7 @@ mmap(td, uap)
struct vattr va;
if ((error =
VOP_GETATTR(vp, &va,
- td->td_proc->p_ucred, td))) {
+ td->td_ucred, td))) {
goto done;
}
if ((va.va_flags &
@@ -1184,7 +1184,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot,
struct vattr vat;
int error;
- error = VOP_GETATTR(vp, &vat, td->td_proc->p_ucred, td);
+ error = VOP_GETATTR(vp, &vat, td->td_ucred, td);
if (error) {
mtx_unlock(&Giant);
return (error);
OpenPOWER on IntegriCloud