Index: pci.c =================================================================== RCS file: /home/joerg/repo/netbsd/src/sys/dev/pci/pci.c,v retrieving revision 1.118 diff -u -p -r1.118 pci.c --- pci.c 12 Jun 2008 22:44:47 -0000 1.118 +++ pci.c 18 Sep 2008 12:47:21 -0000 @@ -432,10 +432,10 @@ pci_get_capability(pci_chipset_tag_t pc, ofs = PCI_CAPLIST_PTR(pci_conf_read(pc, tag, ofs)); while (ofs != 0) { -#ifdef DIAGNOSTIC - if ((ofs & 3) || (ofs < 0x40)) - panic("pci_get_capability"); -#endif + if ((ofs & 3) || (ofs < 0x40)) { + printf("Broken PCI header detected\n"); + break; + } reg = pci_conf_read(pc, tag, ofs); if (PCI_CAPLIST_CAP(reg) == capid) { if (offset)