summaryrefslogtreecommitdiff
path: root/src/x86_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x86_pci.c')
-rw-r--r--src/x86_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_pci.c b/src/x86_pci.c
index 2fba1e5..a272147 100644
--- a/src/x86_pci.c
+++ b/src/x86_pci.c
@@ -254,7 +254,7 @@ map_dev_mem(void **dest, size_t mem_offset, size_t mem_size, int write)
err = vm_map (mach_task_self (), (vm_address_t *)dest, mem_size,
(vm_address_t) 0, /* mask */
- *dest == 0, /* anywhere? */
+ 1, /* anywhere? */
pager, mem_offset,
0, /* copy */
prot, VM_PROT_ALL, VM_INHERIT_SHARE);