linux(4): Use variable name not type for sizeof() to calculate storage size.

MFC after:		2 weeks
This commit is contained in:
Dmitry Chagin 2021-07-29 12:54:32 +03:00
parent 49a5c0409b
commit bd25bf092a

View File

@ -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);