summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1998-03-02 20:51:06 +0000
committerguido <guido@FreeBSD.org>1998-03-02 20:51:06 +0000
commitfb33e403b29031b0c44b63871f26c35ade831916 (patch)
treea0990bcc55e91a2fb0e8fe9991c74e7bdda0f6e6
parent8b76f70d01b1d2ff3ca3b5298b3cdc4ccaf9128b (diff)
downloadFreeBSD-src-fb33e403b29031b0c44b63871f26c35ade831916.zip
FreeBSD-src-fb33e403b29031b0c44b63871f26c35ade831916.tar.gz
bit_nset was not correctly used.
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index 0cb3076..cf4e162 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: cardd.c,v 1.27 1998/02/27 09:47:36 hosokawa Exp $";
+ "$Id: cardd.c,v 1.28 1998/03/02 19:00:01 guido Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -196,7 +196,7 @@ card_removed(struct slot *sp)
sp->cis = 0;
sp->config = 0;
/* release io */
- bit_nset(io_avail, sp->io.addr, sp->io.size);
+ bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1);
}
/*
OpenPOWER on IntegriCloud