win-pvdrivers

changeset 1084:c94174bbf195

Add another assert to catch a bsd problem
author James Harper <james.harper@bendigoit.com.au>
date Thu Dec 12 19:54:33 2013 +1100 (2013-12-12)
parents 82f54c86cce4
children 896402519f15
files xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_tx.c	Thu Dec 12 10:56:30 2013 +1100
     1.2 +++ b/xennet/xennet_tx.c	Thu Dec 12 19:54:33 2013 +1100
     1.3 @@ -33,6 +33,7 @@ get_id_from_freelist(struct xennet_info 
     1.4  static VOID
     1.5  put_id_on_freelist(struct xennet_info *xi, USHORT id)
     1.6  {
     1.7 +  XN_ASSERT(id >= 0 && id < NET_TX_RING_SIZE);
     1.8    xi->tx_id_list[xi->tx_id_free] = id;
     1.9    xi->tx_id_free++;
    1.10  }