git: 0b55f31e0124 - stable/13 - linux(4): Use variable name not type for sizeof() to calculate storage size.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:37:47 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=0b55f31e0124bce94b00fbae15e28f34c1ca0297
commit 0b55f31e0124bce94b00fbae15e28f34c1ca0297
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-07-29 09:54:32 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:24 +0000
linux(4): Use variable name not type for sizeof() to calculate storage size.
MFC after: 2 weeks
(cherry picked from commit bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3)
---
sys/compat/linux/linux_futex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 353b76afe8cc..cc3a685fb14e 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -1001,7 +1001,7 @@ fetch_robust_entry(struct linux_robust_list **entry,
l_ulong uentry;
int error;
- error = copyin((const void *)head, &uentry, sizeof(l_ulong));
+ error = copyin((const void *)head, &uentry, sizeof(uentry));
if (error != 0)
return (EFAULT);