From 43c8d85d9b271f88b71846e2e63f4a1ed53e49d1 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 27 Feb 2022 07:52:02 +0000 Subject: pci-arbiter: Remove invalid pci_device_close pci_control_port is not a port info so calling deref on it is invalid. There seems no reason to have a device_close for the pci device currently so remove it. TESTED via booting a rump disk Message-Id: <20220227075155.30750-1-damien@zamaudio.com> --- pci-arbiter/main.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'pci-arbiter') diff --git a/pci-arbiter/main.c b/pci-arbiter/main.c index ec97856d..0ed5b1c2 100644 --- a/pci-arbiter/main.c +++ b/pci-arbiter/main.c @@ -97,20 +97,13 @@ pci_device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type, return D_SUCCESS; } -static io_return_t -pci_device_close (void *d) -{ - ports_port_deref (&pci_control_port); - return 0; -} - static struct machdev_device_emulation_ops pci_arbiter_emulation_ops = { NULL, NULL, NULL, NULL, pci_device_open, - pci_device_close, + NULL, NULL, NULL, NULL, -- cgit v1.2.3