git: 0ea12e483d96 - stable/13 - linux(4): Move len variable initialization to the appropriate place.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:37:46 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=0ea12e483d96a6ea4ed6f65167da612b45098ed4
commit 0ea12e483d96a6ea4ed6f65167da612b45098ed4
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-07-29 09:54:16 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:23 +0000
linux(4): Move len variable initialization to the appropriate place.
MFC after: 2 weeks
(cherry picked from commit 49a5c0409bf15fc00bbe363fe7090d7b7c601985)
---
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);