summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/mem.c2
-rw-r--r--sys/alpha/alpha/sys_machdep.c2
-rw-r--r--sys/alpha/osf1/osf1_misc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/alpha/mem.c b/sys/alpha/alpha/mem.c
index 8e75113..c610c6e 100644
--- a/sys/alpha/alpha/mem.c
+++ b/sys/alpha/alpha/mem.c
@@ -122,7 +122,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)
return (error);
}
diff --git a/sys/alpha/alpha/sys_machdep.c b/sys/alpha/alpha/sys_machdep.c
index 7f6c270..bc7bc02 100644
--- a/sys/alpha/alpha/sys_machdep.c
+++ b/sys/alpha/alpha/sys_machdep.c
@@ -114,7 +114,7 @@ alpha_sethae(struct thread *td, char *args)
if (error)
return (error);
- error = securelevel_gt(td->td_proc->p_ucred, 0);
+ error = securelevel_gt(td->td_ucred, 0);
if (error)
return (error);
diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c
index df37cc6..235ba90 100644
--- a/sys/alpha/osf1/osf1_misc.c
+++ b/sys/alpha/osf1/osf1_misc.c
@@ -194,7 +194,7 @@ osf1_emul_find(td, sgp, prefix, path, pbuf, cflag)
return error;
}
- ucred = td->td_proc->p_ucred;
+ ucred = td->td_ucred;
if ((error = VOP_GETATTR(nd.ni_vp, &vat, ucred, td)) != 0) {
goto bad;
}
OpenPOWER on IntegriCloud