diff --git a/sys/dev/xe/if_xe_pccard.c b/sys/dev/xe/if_xe_pccard.c index bec7c6913305..baf905389589 100644 --- a/sys/dev/xe/if_xe_pccard.c +++ b/sys/dev/xe/if_xe_pccard.c @@ -259,6 +259,9 @@ xe_pccard_product_match(device_t dev, const struct pccard_product* ent, int vpfm const struct xe_pccard_product* xpp; uint16_t prodext; + if (vpfmatch == 0) + return (0); + xpp = (const struct xe_pccard_product*)ent; pccard_get_prodext(dev, &prodext); if (xpp->prodext != prodext)