summaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_machdep.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
commita854ed98931b2e365eddd24cd2a1bb53a3f1828f (patch)
treede74317436bc6bf8211535e1dbda3f6762d05582 /sys/i386/linux/linux_machdep.c
parent65e3406d28b159fab93b499d25ed079b2c978ff7 (diff)
Notes
Diffstat (limited to 'sys/i386/linux/linux_machdep.c')
-rw-r--r--sys/i386/linux/linux_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index 99540267bc19..33a4ee26398b 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -561,7 +561,7 @@ linux_iopl(struct thread *td, struct linux_iopl_args *args)
return (EINVAL);
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);
td->td_frame->tf_eflags = (td->td_frame->tf_eflags & ~PSL_IOPL) |
(args->level * (PSL_IOPL / 3));