Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 17:58:27 +0000 (UTC)
From:      Bill Paul <wpaul@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/compat/ndis kern_ndis.c subr_ntoskrnl.c subr_pe.c
Message-ID:  <200502241758.j1OHwRRa076268@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502241758.j1OHwRRa076268>