summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-12-14 16:19:35 -0500
committerAdam Jackson <ajax@redhat.com>2009-12-14 16:32:10 -0500
commitd4e008eeb9af7773edadd259cf55da43411f1a7f (patch)
tree5090a352e51adcf7a3ffed5a339b3860fa32845a
parent5e8d4c19b4f618e22b6e8e1ad3294d8708067474 (diff)
Fix pci_device_open_io() to actually return something useful
Remember, code review just means we're all inept. Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/common_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common_io.c b/src/common_io.c
index bc5ba0a..b4aa360 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -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;