From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 07:54:47 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA4E916A46B; Sun, 17 Jun 2007 07:54:47 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.freebsd.org (Postfix) with ESMTP id 9C16313C4BB; Sun, 17 Jun 2007 07:54:17 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from [127.0.0.1] (unknown [10.44.99.158]) by gddsn.org.cn (Postfix) with ESMTP id 9141038CB99; Sun, 17 Jun 2007 15:53:57 +0800 (CST) Message-ID: <4674E892.8020201@gddsn.org.cn> Date: Sun, 17 Jun 2007 15:53:54 +0800 From: =?GB2312?B?zuLK5cCk?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Hidetoshi Shimokawa , current@freebsd.org, mobile@freebsd.org References: <46734A3E.3010903@gddsn.org.cn> <626eb4530706160525o54234621s2de098e64cdeb4fe@mail.gmail.com> In-Reply-To: <626eb4530706160525o54234621s2de098e64cdeb4fe@mail.gmail.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 17 Jun 2007 11:34:47 +0000 Cc: Subject: Re: kernel panic with pccard insert on recent 7.0 CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 07:54:48 -0000 Hidetoshi Shimokawa Wrote: > I think the following patch fix the problem. > > RCS file: /home/ncvs/src/sys/dev/pccard/pccard.c,v > retrieving revision 1.118 > diff -u -r1.118 pccard.c > --- pccard.c 31 May 2007 19:29:20 -0000 1.118 > +++ pccard.c 16 Jun 2007 12:23:35 -0000 > @@ -1238,7 +1238,7 @@ > if (pf->intr_filter != NULL || pf->intr_handler != NULL) > panic("Only one interrupt handler per function allowed"); > err = bus_generic_setup_intr(dev, child, irq, flags, pccard_filter, > - pccard_intr, pf, cookiep); > + intr ? pccard_intr : NULL, pf, cookiep); > if (err != 0) > return (err); > pf->intr_filter = filt; > yup, It work for me with your patch anyway. thanks for your patch and help ;-)