aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-04-10 06:08:27 +0000
committerWarner Losh <imp@FreeBSD.org>2003-04-10 06:08:27 +0000
commit649a9521d5e88004d6352dec3225beea2ad75011 (patch)
tree7126eacd568e8753330ce62bef3dbb15af6a2208 /sys/dev/ed
parent5414629575fdf477b31d66129dce5eba2234ff0f (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_pccard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c
index a845d8d98f32d..1633273f26a60 100644
--- a/sys/dev/ed/if_ed_pccard.c
+++ b/sys/dev/ed/if_ed_pccard.c
@@ -402,7 +402,8 @@ ed_pccard_match(device_t dev)
if ((pp = (const struct ed_product *) pccard_product_lookup(dev,
(const struct pccard_product *) ed_pccard_products,
sizeof(ed_pccard_products[0]), NULL)) != NULL) {
- device_set_desc(dev, pp->prod.pp_name);
+ if (pp->prod.pp_name != NULL)
+ device_set_desc(dev, pp->prod.pp_name);
if (pp->flags & NE2000DVF_DL10019)
device_set_flags(dev, ED_FLAGS_LINKSYS);
else if (pp->flags & NE2000DVF_AX88190)