patch-2.4.22 linux-2.4.22/net/atm/br2684.c

Next file: linux-2.4.22/net/atm/clip.c
Previous file: linux-2.4.22/net/atm/atm_misc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/atm/br2684.c linux-2.4.22/net/atm/br2684.c
@@ -189,7 +189,6 @@
 		return 0;
 		}
 	atomic_add(skb->truesize, &atmvcc->sk->wmem_alloc);
-	ATM_SKB(skb)->iovcnt = 0;
 	ATM_SKB(skb)->atm_options = atmvcc->atm_options;
 	brdev->stats.tx_packets++;
 	brdev->stats.tx_bytes += skb->len;
@@ -482,6 +481,7 @@
 	}
 	brdev->stats.rx_packets++;
 	brdev->stats.rx_bytes += skb->len;
+	memset(ATM_SKB(skb), 0, sizeof(struct atm_skb_data));
 	netif_rx(skb);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)