summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-03-14 21:11:01 +0000
committerimp <imp@FreeBSD.org>2003-03-14 21:11:01 +0000
commite4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21 (patch)
treee369284278f466737691c7578c966120aad4b20b /usr.sbin/pccard
parent64afb9f4caa5b57572c3893eab16381b6866c3fa (diff)
downloadFreeBSD-src-e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21.zip
FreeBSD-src-e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21.tar.gz
manufacturer id is typically 4 bytes
Diffstat (limited to 'usr.sbin/pccard')
-rw-r--r--usr.sbin/pccard/pccardd/readcis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pccard/pccardd/readcis.c b/usr.sbin/pccard/pccardd/readcis.c
index b5e9096..73b72ef 100644
--- a/usr.sbin/pccard/pccardd/readcis.c
+++ b/usr.sbin/pccard/pccardd/readcis.c
@@ -246,7 +246,7 @@ cis_info(struct cis *cp, unsigned char *p, int len)
static void
cis_manuf_id(struct cis *cp, unsigned char *p, int len)
{
- if (len > 4) {
+ if (len >= 4) {
cp->manufacturer = tpl16(p);
cp->product = tpl16(p+2);
if (len == 5)
OpenPOWER on IntegriCloud