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

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

diff -urN linux-2.4.21/net/atm/raw.c linux-2.4.22/net/atm/raw.c
@@ -37,7 +37,7 @@
 static void atm_pop_raw(struct atm_vcc *vcc,struct sk_buff *skb)
 {
 	DPRINTK("APopR (%d) %d -= %d\n",vcc->vci,vcc->sk->wmem_alloc,skb->truesize);
-	atomic_sub(skb->truesize+ATM_PDU_OVHD,&vcc->sk->wmem_alloc);
+	atomic_sub(skb->truesize, &vcc->sk->wmem_alloc);
 	dev_kfree_skb_any(skb);
 	wake_up(&vcc->sleep);
 }

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