Fixed checking the return of mmap(). MAP_FAILED and not NULL.