Net-KVM: Make miniportShutdown return immediately on "NdisShutdownBugCheck"
According to msdn:
"If MiniportHaltEx causes a system error, then the miniport driver will see
a nested call to MiniportShutdownEx with
ShutdownActionNdisShutdownBugCheck. In this case, MiniportShutdownEx
should return immediately without doing any work."
@@ -476,10 +476,12 @@ static VOID ParaNdis6_AdapterShutdown(
NDIS_HANDLE miniportAdapterContext,
NDIS_SHUTDOWN_ACTION shutdownAction)
{
+ if (shutdownAction == NdisShutdownBugCheck)
+ {
+ return;
+ }
PARANDIS_ADAPTER *pContext = (PARANDIS_ADAPTER *)miniportAdapterContext;
- UNREFERENCED_PARAMETER(shutdownAction);
-
ParaNdis_OnShutdown(pContext);
}
