direct-io.hg

changeset 1389:25e4846d6d3d

bitkeeper revision 1.891.1.24 (40a51c5eDBiXHbYt1eyq3PFaDV-mZw)

Bug fix in network backend.
author kaf24@scramble.cl.cam.ac.uk
date Fri May 14 19:22:06 2004 +0000 (2004-05-14)
parents bf3fc7825f74
children a06f35e2fccf
files xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/main.c
line diff
     1.1 --- a/xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/main.c	Fri May 14 16:04:38 2004 +0000
     1.2 +++ b/xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/main.c	Fri May 14 19:22:06 2004 +0000
     1.3 @@ -328,10 +328,12 @@ static int __on_net_schedule_list(netif_
     1.4  static void remove_from_net_schedule_list(netif_t *netif)
     1.5  {
     1.6      spin_lock(&net_schedule_list_lock);
     1.7 -    ASSERT(__on_net_schedule_list(netif));
     1.8 -    list_del(&netif->list);
     1.9 -    netif->list.next = NULL;
    1.10 -    netif_put(netif);
    1.11 +    if ( likely(__on_net_schedule_list(netif)) )
    1.12 +    {
    1.13 +        list_del(&netif->list);
    1.14 +        netif->list.next = NULL;
    1.15 +        netif_put(netif);
    1.16 +    }
    1.17      spin_unlock(&net_schedule_list_lock);
    1.18  }
    1.19