From owner-cvs-all@FreeBSD.ORG Thu Feb 24 17:58:27 2005 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 CBFC716A4CE; Thu, 24 Feb 2005 17:58:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE21443D54; Thu, 24 Feb 2005 17:58:27 +0000 (GMT) (envelope-from wpaul@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 j1OHwRxf076269; Thu, 24 Feb 2005 17:58:27 GMT (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1OHwRRa076268; Thu, 24 Feb 2005 17:58:27 GMT (envelope-from wpaul) Message-Id: <200502241758.j1OHwRRa076268@repoman.freebsd.org> From: Bill Paul Date: Thu, 24 Feb 2005 17:58:27 +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/compat/ndis kern_ndis.c subr_ntoskrnl.c subr_pe.c 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: Thu, 24 Feb 2005 17:58:27 -0000 wpaul 2005-02-24 17:58:27 UTC FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c subr_ntoskrnl.c subr_pe.c Log: Couple of lessons learned during USB driver testing: - In kern_ndis.c:ndis_unload_driver(), test that ndis_block->nmb_rlist is not NULL before trying to free() it. - In subr_pe.c:pe_get_import_descriptor(), do a case-insensitive match on the import module name. Most drivers I have encountered link against "ntoskrnl.exe" but the ASIX USB ethernet driver I'm testing with wants "NTOSKRNL.EXE." - In subr_ntoskrnl.c:IoAllocateIrp(), return a pointer to the IRP instead of NULL. (Stub code leftover.) - Also in subr_ntoskrnl.c, add ExAllocatePoolWithTag() and ExFreePool() to the function table list so they'll get exported to drivers properly. Revision Changes Path 1.66 +2 -1 src/sys/compat/ndis/kern_ndis.c 1.53 +3 -1 src/sys/compat/ndis/subr_ntoskrnl.c 1.11 +5 -1 src/sys/compat/ndis/subr_pe.c