cvs commit: src/sys/compat/ndis kern_ndis.c subr_ntoskrnl.c subr_pe.c

Bill Paul wpaul at FreeBSD.org
Thu Feb 24 17:58:28 GMT 2005


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


More information about the cvs-src mailing list