From bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Thu, 29 Jul 2021 12:54:32 +0300 Subject: [PATCH] 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 353b76afe8c..cc3a685fb14 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);