mirror of
https://github.com/drasko/codezero.git
synced 2026-07-22 07:05:24 +02:00
Fixed various bugs in user buffer validation/mapping and mmap() syscall path.
This commit is contained in:
@@ -61,7 +61,7 @@ void *mmap2(void *start, size_t length, int prot, int flags, int fd, off_t pgoff
|
||||
errno = -(int)ret;
|
||||
return MAP_FAILED;
|
||||
}
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user