DORMANTno replies

[PATCH 4 of 5][ATM]: get accounting right when we remove skb

From: chas williams - CONTRACTOR <hidden>
Date: 2005-01-26 16:57:53

please apply to 2.6

thanks!

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/24 13:25:27-05:00 chas@relax.cmf.nrl.navy.mil 
#   [ATM]: get accounting right when we remove skb
#   
#     Signed-off-by: Chas Williams [off-list ref]
# 
# net/atm/svc.c
#   2005/01/24 13:25:10-05:00 chas@relax.cmf.nrl.navy.mil +1 -0
#   [ATM]: get accounting right when we remove skb
#   
#     Signed-off-by: Chas Williams [off-list ref]
# 
diff -Nru a/net/atm/svc.c b/net/atm/svc.c
--- a/net/atm/svc.c	2005-01-25 09:36:57 -05:00
+++ b/net/atm/svc.c	2005-01-25 09:36:57 -05:00
@@ -67,6 +67,7 @@
 	/* beware - socket is still in use by atmsigd until the last
 	   as_indicate has been answered */
 	while ((skb = skb_dequeue(&vcc->sk->sk_receive_queue)) != NULL) {
+		atm_return(vcc, skb->truesize);
 		DPRINTK("LISTEN REL\n");
 		sigd_enq2(NULL,as_reject,vcc,NULL,NULL,&vcc->qos,0);
 		dev_kfree_skb(skb);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help