ia64/xen-unstable

changeset 692:1f4e3a24e225

bitkeeper revision 1.406 (3f576d82JxYSefXXewnkohaEsNAdlg)

dev.c:
Fix a network rx bug.
author kaf24@scramble.cl.cam.ac.uk
date Thu Sep 04 16:51:14 2003 +0000 (2003-09-04)
parents 3744aa0643ce
children 04b2915c1333
files xen/net/dev.c
line diff
     1.1 --- a/xen/net/dev.c	Thu Sep 04 16:24:41 2003 +0000
     1.2 +++ b/xen/net/dev.c	Thu Sep 04 16:51:14 2003 +0000
     1.3 @@ -662,9 +662,12 @@ static void net_rx_action(struct softirq
     1.4          if ( !VIF_LOCAL(skb->dst_vif) )
     1.5              skb->dst_vif = find_vif_by_id(0);
     1.6          
     1.7 -        deliver_packet(skb, skb->dst_vif);
     1.8 -        put_vif(skb->dst_vif);
     1.9 -        
    1.10 +        if ( skb->dst_vif != NULL )
    1.11 +        {
    1.12 +            deliver_packet(skb, skb->dst_vif);
    1.13 +            put_vif(skb->dst_vif);
    1.14 +        }
    1.15 +
    1.16          unmap_domain_mem(skb->head);
    1.17          kfree_skb(skb);
    1.18      }