From e1f4d2864a100c175e5fd708733001a13313150c Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 16 Feb 2019 09:58:44 +0100 Subject: [PATCH] [E1000] Don't attempt to free uninitialized pointer CID 1442660 --- drivers/network/dd/e1000/ndis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,