patch-1.3.77 linux/net/ipx/af_ipx.c

Next file: linux/scripts/patch-kernel
Previous file: linux/net/ipv4/tcp_output.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.76/linux/net/ipx/af_ipx.c linux/net/ipx/af_ipx.c
@@ -593,7 +593,7 @@
 			 */
 			if(skb->sk)
 			{
-				skb->sk->wmem_alloc-=skb->truesize;
+				atomic_sub(skb->truesize, &skb->sk->wmem_alloc);
 				skb->sk=NULL;
 			}
 			/*
@@ -608,7 +608,7 @@
 		{
 			if (!send_to_wire && skb->sk)
 			{
-				skb->sk->wmem_alloc-=skb->truesize;
+				atomic_sub(skb->truesize, &skb->sk->wmem_alloc);
 				skb->sk=NULL;
 			}
 			ipxitf_demux_socket(intrfc, skb, send_to_wire);

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