summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/mem.c4
-rw-r--r--sys/amd64/amd64/sys_machdep.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index c8fdd2a..94851fd 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -116,7 +116,7 @@ mmopen(dev_t dev, int flags, int fmt, struct thread *td)
case 0:
case 1:
if (flags & FWRITE) {
- error = securelevel_gt(td->td_proc->p_ucred, 0);
+ error = securelevel_gt(td->td_ucred, 0);
if (error != 0)
return (error);
}
@@ -125,7 +125,7 @@ mmopen(dev_t dev, int flags, int fmt, struct thread *td)
error = suser_td(td);
if (error != 0)
return (error);
- error = securelevel_gt(td->td_proc->p_ucred, 0);
+ error = securelevel_gt(td->td_ucred, 0);
if (error != 0)
return (error);
td->td_frame->tf_eflags |= PSL_IOPL;
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c
index b7beea9..58e1a22 100644
--- a/sys/amd64/amd64/sys_machdep.c
+++ b/sys/amd64/amd64/sys_machdep.c
@@ -185,7 +185,7 @@ i386_set_ioperm(td, args)
if ((error = suser_td(td)) != 0)
return (error);
- if ((error = securelevel_gt(td->td_proc->p_ucred, 0)) != 0)
+ if ((error = securelevel_gt(td->td_ucred, 0)) != 0)
return (error);
/*
* XXX
OpenPOWER on IntegriCloud