diff options
author | guido <guido@FreeBSD.org> | 1998-03-02 19:00:01 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1998-03-02 19:00:01 +0000 |
commit | 8b76f70d01b1d2ff3ca3b5298b3cdc4ccaf9128b (patch) | |
tree | a941c6acea4f5ccd6640f75c0721ad818d055af4 /usr.sbin/pccard | |
parent | e5372807a48efd014a853ac7c9c02198bd2cfa92 (diff) | |
download | FreeBSD-src-8b76f70d01b1d2ff3ca3b5298b3cdc4ccaf9128b.zip FreeBSD-src-8b76f70d01b1d2ff3ca3b5298b3cdc4ccaf9128b.tar.gz |
Fix use of bit_nclear. Amazing that we didn't get more complaints
about inserting 2 pcmcia cards.
Diffstat (limited to 'usr.sbin/pccard')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index cc7e692..0cb3076 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.26 1998/02/27 08:40:53 hosokawa Exp $"; + "$Id: cardd.c,v 1.27 1998/02/27 09:47:36 hosokawa Exp $"; #endif /* not lint */ #include <stdio.h> @@ -435,7 +435,8 @@ assign_io(struct slot *sp) return (-1); sp->io.addr = i; } - bit_nclear(io_avail, sp->io.addr, sp->io.size); + bit_nclear(io_avail, sp->io.addr, + sp->io.addr + sp->io.size - 1); /* Set up the size to take into account the decode lines. */ sp->io.cardaddr = cp->io_addr; |