microsoft / DMF

Driver Module Framework
MIT License
316 stars 81 forks source link

Merge20210930 #185

Closed samtertzakian closed 3 years ago

samtertzakian commented 3 years ago
  1. Add verification that DMF_ModuleLock() and DMF_ModuleUnlock() family of calls are only called using the Module handle of the Module's file. Modules should never lock/unlock a Child or Parent Module. Doing so will cause an assert in DEBUG build and a Verifier assert in all builds when Verifier is running. NOTE: This is a non-functional change. Only drivers that violate this rule will be affected.
  2. Correct a bug in DMF_SerialTarget where the Modules was not restarting streaming during the Remove Cancel path due to a regression introduced with a previous bug fix in this Module.
  3. Correct an error in unit-test code (found using item 1 above).
  4. Emit an assert when a Verifier assert is emitted so that the assert is always visible in DEBUG build.