git: 49a5c0409bf1 - main - linux(4): Move len variable initialization to the appropriate place.
Dmitry Chagin
dchagin at FreeBSD.org
Thu Jul 29 09:58:57 UTC 2021
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=49a5c0409bf15fc00bbe363fe7090d7b7c601985
commit 49a5c0409bf15fc00bbe363fe7090d7b7c601985
Author: Dmitry Chagin <dchagin at FreeBSD.org>
AuthorDate: 2021-07-29 09:54:16 +0000
Commit: Dmitry Chagin <dchagin at 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);
More information about the dev-commits-src-all
mailing list