mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linux(4): Fix get_robust_list() syscall return value.
The system call returns the head of the robust futex list. The list head is stored in the location pointed to by the head argument. When copying data between address spaces use proper head storage size as it depends on an emulated ABI. PR: 267616 MFC after: 3 days
This commit is contained in:
parent
b40ae8c9fe
commit
9f7bf94ee2
1 changed files with 1 additions and 1 deletions
|
|
@ -931,7 +931,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
|
|||
if (error != 0)
|
||||
return (EFAULT);
|
||||
|
||||
return (copyout(&head, args->head, sizeof(head)));
|
||||
return (copyout(&head, args->head, sizeof(l_uintptr_t)));
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue