diff options
author | imp <imp@FreeBSD.org> | 2003-04-10 04:36:02 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-04-10 04:36:02 +0000 |
commit | 0b41fd998b452c7ec8d7ba1da74ab2d3aeca7668 (patch) | |
tree | b753190964ccbd5954520469be2512025019f370 /sys/dev/ep | |
parent | b8eb5e1cd083ce0919059e4dd7b1fac281f14613 (diff) | |
download | FreeBSD-src-0b41fd998b452c7ec8d7ba1da74ab2d3aeca7668.zip FreeBSD-src-0b41fd998b452c7ec8d7ba1da74ab2d3aeca7668.tar.gz |
Make sure that pp_name is non-null before setting the device
description. This allows us to rely entirely on the CIS entries if
necessary...
Diffstat (limited to 'sys/dev/ep')
-rw-r--r-- | sys/dev/ep/if_ep_pccard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ep/if_ep_pccard.c b/sys/dev/ep/if_ep_pccard.c index ca30515..5a3e70a 100644 --- a/sys/dev/ep/if_ep_pccard.c +++ b/sys/dev/ep/if_ep_pccard.c @@ -254,7 +254,8 @@ ep_pccard_match(device_t dev) if ((pp = pccard_product_lookup(dev, ep_pccard_products, sizeof(ep_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; |