diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2018-05-29 20:03:24 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2018-05-29 20:03:24 +0000 |
| commit | cbf7e0cba7d47c20c73122e8dbefb98bf89fedad (patch) | |
| tree | 5b25528da2ffc90baf3ec98574334b0c572a5481 /sys/amd64/linux/linux_sysvec.c | |
| parent | ed50b918802f42b73b2dd8d7f4fd430c6f1f8f9c (diff) | |
Notes
Diffstat (limited to 'sys/amd64/linux/linux_sysvec.c')
| -rw-r--r-- | sys/amd64/linux/linux_sysvec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index 281e67e84d13..cd5c8bd382dc 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -283,8 +283,7 @@ linux_fixup_elf(register_t **stack_base, struct image_params *imgp) AUXARGS_ENTRY(pos, AT_NULL, 0); free(imgp->auxargs, M_TEMP); imgp->auxargs = NULL; - KASSERT((pos - argarray) / sizeof(*pos) <= LINUX_AT_COUNT, - ("Too many auxargs")); + KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs")); error = copyout(argarray, auxbase, sizeof(*argarray) * LINUX_AT_COUNT); free(argarray, M_TEMP); |
