[E1000] Don't attempt to free uninitialized pointer

CID 1442660
This commit is contained in:
Pierre Schweitzer 2019-02-16 09:58:44 +01:00
parent a8002fc065
commit e1f4d2864a
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -116,6 +116,9 @@ MiniportInitialize(
return NDIS_STATUS_UNSUPPORTED_MEDIA;
}
ResourceList = NULL;
ResourceListSize = 0;
/* Allocate our adapter context */
Status = NdisAllocateMemoryWithTag((PVOID*)&Adapter,
sizeof(*Adapter),
@ -155,10 +158,7 @@ MiniportInitialize(
goto Cleanup;
}
/* Get our resources for IRQ and IO base information */
ResourceList = NULL;
ResourceListSize = 0;
NdisMQueryAdapterResources(&Status,
WrapperConfigurationContext,
ResourceList,