aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cs/if_cs_pccard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cs/if_cs_pccard.c')
-rw-r--r--sys/dev/cs/if_cs_pccard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/cs/if_cs_pccard.c b/sys/dev/cs/if_cs_pccard.c
index a927f21f9c34..9ec044b38d5e 100644
--- a/sys/dev/cs/if_cs_pccard.c
+++ b/sys/dev/cs/if_cs_pccard.c
@@ -58,7 +58,8 @@ cs_pccard_match(device_t dev)
if ((pp = pccard_product_lookup(dev, cs_pccard_products,
sizeof(cs_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;