aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_util.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-11-25 21:42:13 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-06-17 19:33:39 +0000
commit753605353d79d1dde655779273013b6400daaaf7 (patch)
treeef522d13abef97c593d2c3fe29f2fa784e3a9fcb /sys/compat/linux/linux_util.c
parent86bcdd9d34638cabab1852d0ae1df6059c4f673d (diff)
linux: remove the always curthread argument from lconvpath
(cherry picked from commit af4051d25055fee086c0f78421e68fec20640f17)
Diffstat (limited to 'sys/compat/linux/linux_util.c')
-rw-r--r--sys/compat/linux/linux_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c
index 9e6dea35617f..f1d33faa628d 100644
--- a/sys/compat/linux/linux_util.c
+++ b/sys/compat/linux/linux_util.c
@@ -99,12 +99,12 @@ SYSCTL_BOOL(_compat_linux, OID_AUTO, use_real_ifnames, CTLFLAG_RWTUN,
* named file, i.e. we check if the directory it should be in exists.
*/
int
-linux_emul_convpath(struct thread *td, const char *path, enum uio_seg pathseg,
+linux_emul_convpath(const char *path, enum uio_seg pathseg,
char **pbuf, int cflag, int dfd)
{
int retval;
- retval = kern_alternate_path(td, linux_emul_path, path, pathseg, pbuf,
+ retval = kern_alternate_path(curthread, linux_emul_path, path, pathseg, pbuf,
cflag, dfd);
return (retval);