aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-04-09 15:54:00 +0000
committerWarner Losh <imp@FreeBSD.org>2003-04-09 15:54:00 +0000
commit7e9b53e39996aab50c1db952d821b0fc17cdcdbf (patch)
tree773d979bed680b7684aa60dcf06db03fa28bbbca
parent22baecf2bd4914b9ddea392897be69d87f31b06a (diff)
Notes
-rw-r--r--sys/dev/pccard/pccard.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index e5a862a73311c..dec174c8aef98 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -339,16 +339,17 @@ pccard_do_product_lookup(device_t bus, device_t dev,
return (NULL);
if (pccard_get_product_str(dev, &prodstr))
return (NULL);
- for (ent = tab; ent->pp_name != NULL; ent =
+ for (ent = tab; ent->pp_name != NULL && ent->pp_vendor != 0; ent =
(const struct pccard_product *) ((const char *) ent + ent_size)) {
matches = 1;
if (ent->pp_vendor == PCCARD_VENDOR_ANY &&
ent->pp_product == PCCARD_PRODUCT_ANY &&
ent->pp_cis[0] == NULL &&
ent->pp_cis[1] == NULL) {
- device_printf(dev,
- "Total wildcard entry ignored for %s\n",
- ent->pp_name);
+ if (ent->pp_name)
+ device_printf(dev,
+ "Total wildcard entry ignored for %s\n",
+ ent->pp_name);
continue;
}
if (matches && ent->pp_vendor != PCCARD_VENDOR_ANY &&