Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2026 07:17:07 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: cd86057224b5 - stable/15 - amd64: ia32_fetch_syscall_args() does not need to check params != NULL
Message-ID:  <69f847f3.41c2a.432819de@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f847f3.41c2a.432819de>