bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/4] pci-arbiter: Call libpciaccess cleanup on shutdown


From: Joan Lledó
Subject: [PATCH 2/4] pci-arbiter: Call libpciaccess cleanup on shutdown
Date: Sun, 3 Nov 2019 10:38:27 +0100 (CET)

From: Joan Lledó <jlledom@member.fsf.org>

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]