diff options
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 5 |
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; } |