aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.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/compat/linux/linux_misc.c
parent65e3406d28b159fab93b499d25ed079b2c978ff7 (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 031c406f7820..68f99fb3983f 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -284,7 +284,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
}
/* Executable? */
- error = VOP_GETATTR(vp, &attr, td->td_proc->p_ucred, td);
+ error = VOP_GETATTR(vp, &attr, td->td_ucred, td);
if (error)
goto cleanup;
@@ -301,11 +301,11 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
}
/* Can we access it? */
- error = VOP_ACCESS(vp, VEXEC, td->td_proc->p_ucred, td);
+ error = VOP_ACCESS(vp, VEXEC, td->td_ucred, td);
if (error)
goto cleanup;
- error = VOP_OPEN(vp, FREAD, td->td_proc->p_ucred, td);
+ error = VOP_OPEN(vp, FREAD, td->td_ucred, td);
if (error)
goto cleanup;