SIGN IN SIGN UP

gh-113343: Fix error check on mmap(2) (#113342)

Fix error check on mmap(2)

It should check MAP_FAILED instead of NULL for error.

On mmap(2) man page:

  RETURN VALUE
       On success, mmap() returns a pointer to the mapped area.
       On error, the value MAP_FAILED (that is, (void *) -1) is
       returned, and errno is set to indicate the error.
N
Namhyung Kim committed
6b70c3dc5ab2f290fcdbe474bcb7d6fdf29eae4c
Parent: 5f7a80f
Committed by GitHub <noreply@github.com> on 12/21/2023, 7:28:55 PM