aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-06-12 22:54:48 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2018-06-12 22:54:48 +0000
commit6362b1a6b13a3c6f177771e94023fdacfcd60715 (patch)
treef2f2da20f5223e810e7e1bc5bdbc729ef1a5770e /sys
parentfa986e33be64700d20ab8190dd144aa766b18a62 (diff)
downloadsrc-6362b1a6b13a3c6f177771e94023fdacfcd60715.tar.gz
src-6362b1a6b13a3c6f177771e94023fdacfcd60715.zip
Fix number of auxargs entries to copy out for 32-bit Linuxulator.
PR: 228790
Notes
Notes: svn path=/head/; revision=335020
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index e568ecef4161..648456dc718d 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -249,9 +249,10 @@ linux_fixup_elf(register_t **stack_base, struct image_params *imgp)
free(imgp->auxargs, M_TEMP);
imgp->auxargs = NULL;
- KASSERT(pos - argarray <= AT_COUNT, ("Too many auxargs"));
+ KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs"));
- error = copyout(&argarray[0], auxbase, sizeof(*argarray) * AT_COUNT);
+ error = copyout(&argarray[0], auxbase,
+ sizeof(*argarray) * LINUX_AT_COUNT);
free(argarray, M_TEMP);
if (error != 0)
return (error);