[NTOSKRNL:CONFIG]
CmShutdownSystem: Close all hive files after flushing the hives.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63897 97493ccd-5924-5043-b1f5-66cb403b36ce
[HAL]
Fix a catastrophic bug in S/G DMA. There is a subtle difference between the S/G DMA APIs and the old AllocateAdapterChannel API when it comes to having multiple requests in flight. Callers of (Io)AllocateAdapterChannel CANNOT queue another request until the AdapterControlRoutine is called. S/G DMA allows multiple concurrent DMA requests, but ROS was using IoAllocateAdapterChannel in the S/G API. As a result, the wait block stored in the device object was unexpectedly reinitalized and queued again. This results in a leak of the originally queued request context, potentially performing the new DMA operation twice while dropping the old request, and use after free of the context passed to HalpScatterGatherAdapterControl.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63898 97493ccd-5924-5043-b1f5-66cb403b36ce
[TCPIP]
- Reference the address file while delivering data to avoid a use after free when an address file is closed during datagram delivery

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63899 97493ccd-5924-5043-b1f5-66cb403b36ce