Fix pci_device_open_io() to actually return something useful
authorAdam Jackson <ajax@redhat.com>
Mon, 14 Dec 2009 21:19:35 +0000 (16:19 -0500)
committerAdam Jackson <ajax@redhat.com>
Mon, 14 Dec 2009 21:32:10 +0000 (16:32 -0500)
Remember, code review just means we're all inept.

Signed-off-by: Adam Jackson <ajax@redhat.com>
src/common_io.c

index bc5ba0a..b4aa360 100644 (file)
@@ -114,6 +114,8 @@ pci_device_open_io(struct pci_device *dev, pciaddr_t base, pciaddr_t size)
            delete_io_handle(ret);
            return NULL;
        }
+
+        return ret;
     }
 
     return NULL;