mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[E1000] Don't attempt to free uninitialized pointer
CID 1442660
This commit is contained in:
parent
a8002fc065
commit
e1f4d2864a
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue