diff --git a/sys/external/bsd/drm2/via/via_pci.c b/sys/external/bsd/drm2/via/via_pci.c index 3cdf5845e0fa..9c821e33412b 100644 --- a/sys/external/bsd/drm2/via/via_pci.c +++ b/sys/external/bsd/drm2/via/via_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: via_pci.c,v 1.3 2018/08/27 14:12:44 riastradh Exp $ */ +/* $NetBSD: via_pci.c,v 1.4 2020/07/20 21:29:38 riastradh Exp $ */ /*- * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: via_pci.c,v 1.3 2018/08/27 14:12:44 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: via_pci.c,v 1.4 2020/07/20 21:29:38 riastradh Exp $"); #include #include @@ -70,6 +70,9 @@ viadrm_lookup(const struct pci_attach_args *pa) unsigned i; for (i = 0; i < __arraycount(viadrm_pci_ids); i++) { + if (viadrm_pci_ids[i].vendor == 0 && + viadrm_pci_ids[i].device == 0) + break; KASSERT(viadrm_pci_ids[i].subvendor == PCI_ANY_ID); KASSERT(viadrm_pci_ids[i].subdevice == PCI_ANY_ID); KASSERT(viadrm_pci_ids[i].class == 0);