summaryrefslogtreecommitdiffstats
path: root/sys/i386/i386/vm86.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/i386/vm86.c')
-rw-r--r--sys/i386/i386/vm86.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/i386/i386/vm86.c b/sys/i386/i386/vm86.c
index 6a85718..fef6a00 100644
--- a/sys/i386/i386/vm86.c
+++ b/sys/i386/i386/vm86.c
@@ -659,7 +659,6 @@ vm86_sysarch(td, args)
struct thread *td;
char *args;
{
- struct proc *p = td->td_proc;
int error = 0;
struct i386_vm86_args ua;
struct vm86_kernel *vm86;
@@ -716,7 +715,7 @@ vm86_sysarch(td, args)
case VM86_INTCALL: {
struct vm86_intcall_args sa;
- if ((error = suser(p)))
+ if ((error = suser(td)))
return (error);
if ((error = copyin(ua.sub_args, &sa, sizeof(sa))))
return (error);
OpenPOWER on IntegriCloud