- Fix a code typo
authorCameron Gutman <aicommander@gmail.com>
Sat, 6 Sep 2008 20:52:54 +0000 (20:52 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 6 Sep 2008 20:52:54 +0000 (20:52 +0000)
svn path=/branches/aicom-network-fixes/; revision=36004

drivers/network/tcpip/tcpip/main.c

index a7ef858..b390b98 100644 (file)
@@ -711,8 +711,8 @@ DriverEntry(
   /* Setup network layer and transport layer entities */
   KeInitializeSpinLock(&EntityListLock);
   EntityList = ExAllocatePool(NonPagedPool, sizeof(TDIEntityID) * MAX_TDI_ENTITIES );
-  if (!NT_SUCCESS(Status)) {
-         TI_DbgPrint(MIN_TRACE, ("Insufficient resources.\n"));
+  if (!EntityList) {
+    TI_DbgPrint(MIN_TRACE, ("Insufficient resources.\n"));
     TiUnload(DriverObject);
     return STATUS_INSUFFICIENT_RESOURCES;
   }