summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-25 18:20:03 +0000
committerimp <imp@FreeBSD.org>2003-08-25 18:20:03 +0000
commitdd084178f0bd183cb6b96e5f622d7c46d5ea0c76 (patch)
treeabd972b510e2b00c35e73feeb4b3b8730209b2bd /sys
parent2576cdbe11debe95c533d059479e658cc8a73f8a (diff)
downloadFreeBSD-src-dd084178f0bd183cb6b96e5f622d7c46d5ea0c76.zip
FreeBSD-src-dd084178f0bd183cb6b96e5f622d7c46d5ea0c76.tar.gz
Probe routines can return < 0 for speculative matches. In the
compatibility routine, go ahead and accept that as 'success'. A properly written compatible driver should return < 0 for both the compat match and compat probe routines, so this will wind up doing the right thing.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pccard/pccard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index 49a35af..055cdfd 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -759,7 +759,7 @@ pccard_compat_do_attach(device_t bus, device_t dev)
int err;
err = CARD_COMPAT_PROBE(dev);
- if (err == 0)
+ if (err <= 0)
err = CARD_COMPAT_ATTACH(dev);
return (err);
}
OpenPOWER on IntegriCloud