https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e1f4d2864a100c175e5fd…
commit e1f4d2864a100c175e5fd708733001a13313150c
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Feb 16 09:58:44 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Feb 16 10:02:28 2019 +0100
[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 f73bf5e89d..2e713dfcb6 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,