win-pvdrivers

changeset 608:f5e20f53699d 0.10.0.83

and also added missing check for no more buffers
author James Harper <james.harper@bendigoit.com.au>
date Sun Jul 05 21:07:39 2009 +1000 (2009-07-05)
parents c2aea3e060a7
children 8141e95a31a2
files xennet/xennet_rx.c
line diff
     1.1 --- a/xennet/xennet_rx.c	Sun Jul 05 21:06:26 2009 +1000
     1.2 +++ b/xennet/xennet_rx.c	Sun Jul 05 21:07:39 2009 +1000
     1.3 @@ -403,6 +403,11 @@ XenNet_SumPacketData(
     1.4      if (buffer_offset >= buffer_length)
     1.5      {
     1.6        NdisGetNextBuffer(mdl, &mdl);
     1.7 +      if (mdl == NULL)
     1.8 +      {
     1.9 +        KdPrint((__DRIVER_NAME "     Ran out of buffers\n"));
    1.10 +        return FALSE; // should never happen
    1.11 +      }
    1.12        NdisQueryBufferSafe(mdl, (PVOID)&buffer, &buffer_length, NormalPagePriority);
    1.13        buffer_offset = 0;
    1.14      }