patch-1.3.82 linux/net/core/skbuff.c

Next file: linux/net/core/sock.c
Previous file: linux/net/core/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.81/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -628,9 +628,9 @@
 			if (rw)
 				atomic_sub(skb->truesize, &sk->rmem_alloc);
 			else {
-				atomic_sub(skb->truesize, &sk->wmem_alloc);
 				if(!sk->dead)
 					sk->write_space(sk);
+				atomic_sub(skb->truesize, &sk->wmem_alloc);
 			}
 			kfree_skbmem(skb);
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this