diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-07 08:53:34 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-07 08:53:34 +0000 |
commit | 1b64a290cb5c23b8ca6c35a93d7a1d417c0966b9 (patch) | |
tree | 11849275298a24e1f22849fd4aeda6e8e64e3c09 /sys/compat/linux | |
parent | 2e74448235b519e3016df1ec094e7aea1c4f46be (diff) |
Pass a thread pointer instead of its file descriptor table to getvnode(9).
Input and ok millert@
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index f960b778f97..be01c8a1516 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.93 2015/05/02 14:43:06 jsg Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.94 2015/05/07 08:53:32 mpi Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -1187,7 +1187,7 @@ getdents_common(p, v, retval, is64bit) int error; int nbytes = SCARG(uap, count); - if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0) + if ((error = getvnode(p, SCARG(uap, fd), &fp)) != 0) return (error); if (nbytes == 1) { /* emulating old, broken behaviour */ |