diff --git a/src/common_interface.c b/src/common_interface.c
index cb95e90..14996c4 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -290,11 +290,13 @@ pci_device_map_range(struct pci_device *dev, pciaddr_t base,
 
     /* Make sure that there isn't already a mapping with the same base and
      * size.
+     * If there is, use it.
      */
     for (i = 0; i < devp->num_mappings; i++) {
         if ((devp->mappings[i].base == base)
             && (devp->mappings[i].size == size)) {
-            return EINVAL;
+            *addr = devp->mappings[i].memory;
+            return 0;
         }
     }
 
