- Use NewBuf instead of Data so we actually use the buffer we allocate
authorCameron Gutman <aicommander@gmail.com>
Sat, 6 Sep 2008 20:42:10 +0000 (20:42 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 6 Sep 2008 20:42:10 +0000 (20:42 +0000)
svn path=/branches/aicom-network-fixes/; revision=36003

drivers/network/tcpip/tcpip/buffer.c

index dd3a245..dd5021d 100644 (file)
@@ -323,7 +323,7 @@ NDIS_STATUS PrependPacket( PNDIS_PACKET Packet, PCHAR Data, UINT Length,
        RtlCopyMemory( NewBuf, Data, Length );
     } else NewBuf = Data;
 
-    NdisAllocateBuffer( &Status, &Buffer, GlobalBufferPool, Data, Length );
+    NdisAllocateBuffer( &Status, &Buffer, GlobalBufferPool, NewBuf, Length );
     if( Status != NDIS_STATUS_SUCCESS ) return Status;
 
     NdisChainBufferAtFront( Packet, Buffer );