[PATCH 1/2] libwine: fix incorrect usage of mincore() by try_mmap_fixed()
18 May
2020
18 May
'20
7:04 p.m.
The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to. Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- libs/wine/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
18 May
18 May
7:10 p.m.
Damjan Jovanovic <damjan.jov(a)gmail.com> writes:
The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to.
Actually we don't care whether it's resident or not, we are only interested in checking if there's something at this address. -- Alexandre Julliard julliard(a)winehq.org
2040
Age (days ago)
2040
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Damjan Jovanovic