From d55dc24982b60bd880e3475ae946e76dfa27103b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 15 Jul 2005 06:05:11 +0000 Subject: Fix the xircom match routine. In it we were always return a match when the base vendor/id didn't match. Some cards woudl bogusly match and would cause other downstream problems. --- sys/dev/xe/if_xe_pccard.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev') 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) -- cgit v1.3