diff --git a/drivers/network/dd/e1000/ndis.c b/drivers/network/dd/e1000/ndis.c index f73bf5e89dd..2e713dfcb6c 100644 --- a/drivers/network/dd/e1000/ndis.c +++ b/drivers/network/dd/e1000/ndis.c @@ -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,