linux(4): Use variable name not type for sizeof() to calculate storage size.
MFC after: 2 weeks
This commit is contained in:
parent
49a5c0409b
commit
bd25bf092a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user