summaryrefslogtreecommitdiffstats
path: root/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pci.c b/pci.c
index 6ed016b..dc18903 100644
--- a/pci.c
+++ b/pci.c
@@ -97,7 +97,8 @@ extern struct pciusb_entries pci_probe(void) {
close(devf);
}
- realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);
+ r.entries = realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);
+
pci_cleanup(pacc);
if (pciusb_find_modules(&r, "pcitable", DO_NOT_LOAD, 1))