summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus/cardbus.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-09-05 20:25:28 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-09-05 20:25:28 +0000
commit44e326072fa324cda3726d96af8cf4a827fcb05b (patch)
treec97577d5097598d3c5659966da415f18f19bfadc /sys/dev/cardbus/cardbus.c
parent6e46c99f73f3fe0c07ce13746dc3449bb646f970 (diff)
correct manfid length check.
Diffstat (limited to 'sys/dev/cardbus/cardbus.c')
-rw-r--r--sys/dev/cardbus/cardbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 5d19b6f2fa2..fd05e608d30 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cardbus.c,v 1.23 2005/08/22 18:00:37 fgsch Exp $ */
+/* $OpenBSD: cardbus.c,v 1.24 2005/09/05 20:25:27 fgsch Exp $ */
/* $NetBSD: cardbus.c,v 1.24 2000/04/02 19:11:37 mycroft Exp $ */
/*
@@ -299,7 +299,7 @@ parse_tuple(u_int8_t *tuple, int len, void *data)
char *p;
switch(tuple[0]) {
case PCMCIA_CISTPL_MANFID:
- if(tuple[1] != 5) {
+ if(tuple[1] < 4) {
DPRINTF(("%s: wrong length manufacturer id (%d)\n",
func, tuple[1]));
break;