git: bd25bf092ae9 - main - linux(4): Use variable name not type for sizeof() to calculate storage size.
Dmitry Chagin
dchagin at FreeBSD.org
Thu Jul 29 09:58:58 UTC 2021
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3
commit bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3
Author: Dmitry Chagin <dchagin at FreeBSD.org>
AuthorDate: 2021-07-29 09:54:32 +0000
Commit: Dmitry Chagin <dchagin at FreeBSD.org>
CommitDate: 2021-07-29 09:54:32 +0000
linux(4): Use variable name not type for sizeof() to calculate storage size.
MFC after: 2 weeks
---
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);
More information about the dev-commits-src-all
mailing list