From owner-cvs-src@FreeBSD.ORG Tue Apr 12 04:30:35 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5BC316A4CE; Tue, 12 Apr 2005 04:30:35 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A87A43D49; Tue, 12 Apr 2005 04:30:35 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3C4UZf1088857; Tue, 12 Apr 2005 04:30:35 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3C4UZY4088855; Tue, 12 Apr 2005 04:30:35 GMT (envelope-from imp) Message-Id: <200504120430.j3C4UZY4088855@repoman.freebsd.org> From: Warner Losh Date: Tue, 12 Apr 2005 04:30:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pccard pccard.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 04:30:35 -0000 imp 2005-04-12 04:30:35 UTC FreeBSD src repository Modified files: sys/dev/pccard pccard.c Log: Use return value of resource_list_add to avoid a second resource_list_find. Check to make sure that rle is not NULL and panic if it is (but it appears that resource_list_add already panics, so I'm not entirely sure it is necessary now). Add a test to make sure we have a interrupt resource when we're disabling it. This is also a cannot happen, but the extra care shoudln't hurt. Found by: Coventry tool via sam@ Revision Changes Path 1.102 +11 -7 src/sys/dev/pccard/pccard.c