From 03bfaba97c64df1e1b372c2c7dd301e8bdb5c918 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 20 Nov 2001 06:15:24 +0000 Subject: [PATCH] Weed out those pccard entries that match everything. These are too dangerous to allow :-) This should fix the ed1: pp_name != NULL; ent = (const struct pccard_product *) ((const char *) ent + ent_size)) { matches = 1; + if (ent->pp_vendor == PCCARD_VENDOR_ANY && + ent->pp_product == PCCARD_VENDOR_ANY && + ent->pp_cis[0] == NULL && + ent->pp_cis[1] == NULL) { + device_printf(dev, + "Total wildcard entry ignored for %s\n", + ent->pp_name); + continue; + } if (matches && ent->pp_vendor != PCCARD_VENDOR_ANY && vendor != ent->pp_vendor) matches = 0;