From owner-cvs-all@FreeBSD.ORG Mon Apr 28 22:45:09 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E661E37B401; Mon, 28 Apr 2003 22:45:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81C9D43F93; Mon, 28 Apr 2003 22:45:09 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3T5j90U076516; Mon, 28 Apr 2003 22:45:09 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3T5j99Y076513; Mon, 28 Apr 2003 22:45:09 -0700 (PDT) Message-Id: <200304290545.h3T5j99Y076513@repoman.freebsd.org> From: Warner Losh Date: Mon, 28 Apr 2003 22:45:09 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 05:45:10 -0000 imp 2003/04/28 22:45:09 PDT FreeBSD src repository Modified files: sys/dev/fxp if_fxp.c if_fxpvar.h Log: Fix 5 bugs: 1) always call fxp_stop in fxp_detach. Since we don't read from the card, there's no need to carefully look at things with bus_child_present. 2) Call FXP_UNLOCK() before calling bus_teardown_intr to avoid a possible deadlock reported by jhb. 3) add gone to the softc. Set it to true in detach. 4) Return immediately if gone is true in fxp_ioctl 5) Return immediately if gone is true in fxp_intr Revision Changes Path 1.175 +10 -8 src/sys/dev/fxp/if_fxp.c 1.26 +1 -0 src/sys/dev/fxp/if_fxpvar.h