git: cd86057224b5 - stable/15 - amd64: ia32_fetch_syscall_args() does not need to check params != NULL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 May 2026 07:17:07 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd86057224b58af38adf0f0ce6042bb39b7b2837
commit cd86057224b58af38adf0f0ce6042bb39b7b2837
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-25 09:46:50 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-05-04 07:16:39 +0000
amd64: ia32_fetch_syscall_args() does not need to check params != NULL
(cherry picked from commit 912f9dfca451e359dda7cdf45539b7c19764f54d)
---
sys/amd64/ia32/ia32_syscall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c
index c61587a93d1f..85e3d8f8e920 100644
--- a/sys/amd64/ia32/ia32_syscall.c
+++ b/sys/amd64/ia32/ia32_syscall.c
@@ -187,7 +187,7 @@ ia32_fetch_syscall_args(struct thread *td)
else
sa->callp = &p->p_sysent->sv_table[sa->code];
- if (params != NULL && sa->callp->sy_narg != 0)
+ if (sa->callp->sy_narg != 0)
error = copyin(params, (caddr_t)args,
(u_int)(sa->callp->sy_narg * sizeof(int)));
else