projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8002fc
)
[E1000] Don't attempt to free uninitialized pointer
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 16 Feb 2019 08:58:44 +0000
(09:58 +0100)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sat, 16 Feb 2019 09:02:28 +0000
(10:02 +0100)
CID
1442660
drivers/network/dd/e1000/ndis.c
patch
|
blob
|
history
diff --git
a/drivers/network/dd/e1000/ndis.c
b/drivers/network/dd/e1000/ndis.c
index
f73bf5e
..
2e713df
100644
(file)
--- a/
drivers/network/dd/e1000/ndis.c
+++ b/
drivers/network/dd/e1000/ndis.c
@@
-116,6
+116,9
@@
MiniportInitialize(
return NDIS_STATUS_UNSUPPORTED_MEDIA;
}
return NDIS_STATUS_UNSUPPORTED_MEDIA;
}
+ ResourceList = NULL;
+ ResourceListSize = 0;
+
/* Allocate our adapter context */
Status = NdisAllocateMemoryWithTag((PVOID*)&Adapter,
sizeof(*Adapter),
/* Allocate our adapter context */
Status = NdisAllocateMemoryWithTag((PVOID*)&Adapter,
sizeof(*Adapter),
@@
-155,10
+158,7
@@
MiniportInitialize(
goto Cleanup;
}
goto Cleanup;
}
-
/* Get our resources for IRQ and IO base information */
/* Get our resources for IRQ and IO base information */
- ResourceList = NULL;
- ResourceListSize = 0;
NdisMQueryAdapterResources(&Status,
WrapperConfigurationContext,
ResourceList,
NdisMQueryAdapterResources(&Status,
WrapperConfigurationContext,
ResourceList,