Add mmap return value judgments
If you do not judge the following will be core dumped