patch-2.4.21 linux-2.4.21/net/atm/pppoatm.c

Next file: linux-2.4.21/net/atm/proc.c
Previous file: linux-2.4.21/net/atm/mpc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/net/atm/pppoatm.c linux-2.4.21/net/atm/pppoatm.c
@@ -231,7 +231,7 @@
 		kfree_skb(skb);
 		return 1;
 	}
-	atomic_add(skb->truesize, &ATM_SKB(skb)->vcc->tx_inuse);
+	atomic_add(skb->truesize, &ATM_SKB(skb)->vcc->sk->wmem_alloc);
 	ATM_SKB(skb)->iovcnt = 0;
 	ATM_SKB(skb)->atm_options = ATM_SKB(skb)->vcc->atm_options;
 	DPRINTK("(unit %d): atm_skb(%p)->vcc(%p)->dev(%p)\n",

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