From owner-cvs-src@FreeBSD.ORG Thu Dec 11 21:27:59 2003 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 E2F9516A4CE; Thu, 11 Dec 2003 21:27:59 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17CDB43D32; Thu, 11 Dec 2003 21:27:59 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hBC5RwXJ084078; Thu, 11 Dec 2003 21:27:58 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hBC5RwE3084077; Thu, 11 Dec 2003 21:27:58 -0800 (PST) (envelope-from wpaul) Message-Id: <200312120527.hBC5RwE3084077@repoman.freebsd.org> From: Bill Paul Date: Thu, 11 Dec 2003 21:27:58 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis kern_ndis.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: Fri, 12 Dec 2003 05:28:00 -0000 wpaul 2003/12/11 21:27:58 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c Log: In NDIS 5.1 miniport drivers, the shutdown handler function pointer is provided to NDIS via the the miniport characteristics structure supplied in the call to NdisMRegisterMiniport(). But in NDIS 5.0 and earlier, you had to call NdisMRegisterAdapterShutdownHandler() and supply both a function pointer and context pointer. We try to handle both cases in ndis_shutdown_nic(). If the driver registered a shutdown routine and a context,then used that context, otherwise pass it the adapter context from NdisMSetAttributesEx(). This fixes a panic on shutdown with the sample Intel 82559 e100bex.sys driver from the Windows DDK. function pointer Revision Changes Path 1.2 +4 -1 src/sys/compat/ndis/kern_ndis.c