- Don't add the protocol to the protocol list if binding failed

svn path=/branches/aicom-network-fixes/; revision=36557
This commit is contained in:
Cameron Gutman 2008-09-27 19:26:17 +00:00
parent 72f9da2665
commit 63ed3d8b4f

View file

@ -43,6 +43,8 @@ NdisCompleteBindAdapter(
{
PROTOCOL_BINDING *Protocol = (PROTOCOL_BINDING *)BindAdapterContext;
if (!NT_SUCCESS(Status)) return;
/* Put protocol binding struct on global list */
ExInterlockedInsertTailList(&ProtocolListHead, &Protocol->ListEntry, &ProtocolListLock);
}