summaryrefslogtreecommitdiffstats
path: root/sys/dev/fe/if_fe_pccard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fe/if_fe_pccard.c')
-rw-r--r--sys/dev/fe/if_fe_pccard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fe/if_fe_pccard.c b/sys/dev/fe/if_fe_pccard.c
index f4f1ada..693b28e 100644
--- a/sys/dev/fe/if_fe_pccard.c
+++ b/sys/dev/fe/if_fe_pccard.c
@@ -82,7 +82,8 @@ fe_pccard_match(device_t dev)
if ((pp = pccard_product_lookup(dev,
(const struct pccard_product *)fe_pccard_products,
sizeof(fe_pccard_products[0]), NULL)) != NULL) {
- device_set_desc(dev, pp->pp_name);
+ if (pp->pp_name != NULL)
+ device_set_desc(dev, pp->pp_name);
return 0;
}
return EIO;
OpenPOWER on IntegriCloud