Fixed various bugs in user buffer validation/mapping and mmap() syscall path.

This commit is contained in:
Bahadir Balban
2008-11-07 12:32:10 +02:00
parent ca8959eee0
commit 3cb36b632a
5 changed files with 18 additions and 22 deletions

View File

@@ -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;
}