pci server crashing during boot on Qubes OS

I tried to launch Minix3 in Qubes OS. While there is no problem to boot minix as a qube (in Qubes OS terminology) before 3641562, it fails with the commit (and after). I didn't dig into PCI handling but this change fixes the problem. Minix handles NULL case from pci_subclass_name.
This commit is contained in:
Krystian Lewandowski 2017-11-16 11:56:47 +01:00
parent 39d31d9fab
commit 7aa537e3c9

View File

@ -617,7 +617,11 @@ pci_subclass_name(pcireg_t reg)
subclassp++;
}
return subclassp->name;
if (subclassp) {
return subclassp->name;
} else {
return NULL;
}
}
#endif /* defined(__minix) && defined(_PCI_SERVER) */