From owner-freebsd-bugs Sat Jun 3 16: 0: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id ABDEF37C392 for ; Sat, 3 Jun 2000 16:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA07688; Sat, 3 Jun 2000 16:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 3 Jun 2000 16:00:03 -0700 (PDT) Message-Id: <200006032300.QAA07688@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Much Subject: kern/18994: PCMCIA sio will happily attach to a used irq line Reply-To: Peter Much Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/18994; it has been noted by GNATS. From: Peter Much To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: kern/18994: PCMCIA sio will happily attach to a used irq line Date: Sat, 3 Jun 2000 20:37:42 +0200 (CEST) >Number: 18994 >Category: kern >Synopsis: PCMCIA sio will happily attach to a used irq line >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 03 15:00:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Peter Much >Release: FreeBSD 4.0-RELEASE i386 >Organization: n/a >Environment: Any PCMCIA card containing a standard sio interface, e.g. modem cards. >Description: If the irq line that is defined in /etc/pccard.conf for that card is already in use by some other device, the sio driver will nevertheless attach the card to that irq line - or so it seems at last. >How-To-Repeat: define irq 8 (that's rtc) in /etc/pccard.conf for some modem card, restart pccardd and plug the card in. This will be accepted, and the card will work (somehow at least...) >Fix: In sys/isa/sio.c, right at the end of sioattach(), the irq line is given to bus_alloc_resource(). If this succeeds, BUS_SETUP_INTR() is called. If it does not succeed, nothing is done and sioattach returns successfully. This should be changed. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message