aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux32/linux32_sysvec.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-02-04 23:57:57 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-02-04 23:57:57 +0000
commit6bea696af25c606452515bc812c23b9f2614344a (patch)
tree2c19e31b4e1d28e46b7814fbb0332ee012c0b859 /sys/amd64/linux32/linux32_sysvec.c
parentffe74ab77f234fabe691bd79e254cd000e07dfe0 (diff)
downloadsrc-6bea696af25c606452515bc812c23b9f2614344a.tar.gz
src-6bea696af25c606452515bc812c23b9f2614344a.zip
linux_copyout_strings: Use PROC_PS_STRINGS().
Reviewed by: markj Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D34173
Diffstat (limited to 'sys/amd64/linux32/linux32_sysvec.c')
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index 516d65f0f7bc..ff9ceda795cc 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -771,7 +771,7 @@ linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base)
char canary[LINUX_AT_RANDOM_LEN];
size_t execpath_len;
- arginfo = (struct linux32_ps_strings *)LINUX32_PS_STRINGS;
+ arginfo = (struct linux32_ps_strings *)PROC_PS_STRINGS(imgp->proc);
destp = (uintptr_t)arginfo;
if (imgp->execpath != NULL && imgp->auxargs != NULL) {