diff options
Diffstat (limited to 'src/common_vgaarb.c')
-rw-r--r-- | src/common_vgaarb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index ca5c0a7..f1c71e0 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -150,6 +150,12 @@ pci_device_vgaarb_init(void) void pci_device_vgaarb_fini(void) { + if (!pci_sys) + return; + + if (!pci_sys->vgaarb_fd) + return; + close(pci_sys->vgaarb_fd); } |