summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_map.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 19320cd..e8dc0ed 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -213,7 +213,10 @@ vm_fd_map(void *addr, vm_prot_t prot, size_t len, off_t off, int fd)
}
pg.physaddr = physmem;
- vm_pager_get(vp->vmobj, off, len, &pg);
+
+ if (vm_pager_get(vp->vmobj, off, len, &pg) != 0)
+ return 0;
+
return physmem;
}