From owner-cvs-src@FreeBSD.ORG Tue Feb 10 15:01:54 2004 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 132EA16A4CE; Tue, 10 Feb 2004 15:01:54 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECE6543D1D; Tue, 10 Feb 2004 15:01:53 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1AN1rGe092028; Tue, 10 Feb 2004 15:01:53 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1AN1rMA092024; Tue, 10 Feb 2004 15:01:53 -0800 (PST) (envelope-from wpaul) Message-Id: <200402102301.i1AN1rMA092024@repoman.freebsd.org> From: Bill Paul Date: Tue, 10 Feb 2004 15:01:53 -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: Tue, 10 Feb 2004 23:01:54 -0000 wpaul 2004/02/10 15:01:53 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c Log: Add some bulletproofing: don't allow the ndis_get_info() or ndis_set_info() routines to do anything except return error if the miniport adapter context is not set (meaning we either having init'ed the driver yet, or the initialization failed). Also, be sure to NULL out the adapter context along with the miniport characteristics pointers if calling the MiniportInitialize() method fails. Revision Changes Path 1.37 +7 -0 src/sys/compat/ndis/kern_ndis.c