Date: Thu, 29 Jul 2021 09:58:56 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 49a5c0409bf1 - main - linux(4): Move len variable initialization to the appropriate place. Message-ID: <202107290958.16T9wuWR070589@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=49a5c0409bf15fc00bbe363fe7090d7b7c601985 commit 49a5c0409bf15fc00bbe363fe7090d7b7c601985 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2021-07-29 09:54:16 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2021-07-29 09:54:16 +0000 linux(4): Move len variable initialization to the appropriate place. MFC after: 2 weeks --- sys/compat/linux/linux_futex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index ec65db3f8bd3..353b76afe8cc 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -893,7 +893,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args { struct linux_emuldata *em; struct linux_robust_list_head *head; - l_size_t len = sizeof(struct linux_robust_list_head); + l_size_t len; struct thread *td2; int error; @@ -924,6 +924,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args PROC_UNLOCK(td2->td_proc); } + len = sizeof(struct linux_robust_list_head); error = copyout(&len, args->len, sizeof(l_size_t)); if (error != 0) return (EFAULT);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107290958.16T9wuWR070589>