- Don't allow a miniport to register more than once for shutdown callbacks
- Fixes hang on shutdown with the BCM57XX driver

svn path=/trunk/; revision=66779
This commit is contained in:
Cameron Gutman 2015-03-18 05:34:44 +00:00
parent 930db86cda
commit 271f823d50

View file

@ -1708,6 +1708,12 @@ NdisMRegisterAdapterShutdownHandler(
NDIS_DbgPrint(DEBUG_MINIPORT, ("Called.\n"));
if (Adapter->BugcheckContext != NULL)
{
NDIS_DbgPrint(MIN_TRACE, ("Attempted to register again for a shutdown callback\n"));
return;
}
BugcheckContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_BUGCHECK_CONTEXT));
if(!BugcheckContext)
{