mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:52:57 +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;
|
return NDIS_STATUS_UNSUPPORTED_MEDIA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResourceList = NULL;
|
||||||
|
ResourceListSize = 0;
|
||||||
|
|
||||||
/* Allocate our adapter context */
|
/* Allocate our adapter context */
|
||||||
Status = NdisAllocateMemoryWithTag((PVOID*)&Adapter,
|
Status = NdisAllocateMemoryWithTag((PVOID*)&Adapter,
|
||||||
sizeof(*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,
|
NdisMQueryAdapterResources(&Status,
|
||||||
WrapperConfigurationContext,
|
WrapperConfigurationContext,
|
||||||
ResourceList,
|
ResourceList,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue