mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[NDIS]
- 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:
parent
930db86cda
commit
271f823d50
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue