Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2021 09:58:57 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bd25bf092ae9 - main - linux(4): Use variable name not type for sizeof() to calculate storage size.
Message-ID:  <202107290958.16T9wv5m070613@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3

commit bd25bf092ae92f5a46eed51a3152c9af4cb0f7b3
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-07-29 09:54:32 +0000
Commit:     Dmitry Chagin <dchagin@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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107290958.16T9wv5m070613>