summaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 26effdb..bb9df83 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -192,7 +192,7 @@ mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
* is shared.
*/
if (ISSET(flags, MAP_SHARED)) {
- fdp = fd_get(fildes);
+ fdp = fd_get(NULL, fildes);
if (fdp == NULL) {
pr_error("mmap: no such fd (fd=%d)\n", fildes);
return NULL;