From: Joan Lledó <[email protected]>
* pci-arbiter/startup-ops.c:
* S_startup_dosync: Call pci_system_cleanup().
---
pci-arbiter/startup-ops.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pci-arbiter/startup-ops.c b/pci-arbiter/startup-ops.c
index f3506c42..eb387fd9 100644
--- a/pci-arbiter/startup-ops.c
+++ b/pci-arbiter/startup-ops.c
@@ -20,6 +20,7 @@
#include <startup_notify_S.h>
+#include <pciaccess.h>
#include <hurd/netfs.h>
#include "startup.h"
@@ -34,6 +35,9 @@ S_startup_dosync (mach_port_t handle)
if (!inpi)
return EOPNOTSUPP;
+ // Free all libpciaccess resources
+ pci_system_cleanup ();
+
ports_port_deref (inpi);
return netfs_shutdown (FSYS_GOAWAY_FORCE);
--
2.20.1