patch-1.3.77 linux/net/ax25/ax25_in.c

Next file: linux/net/ax25/ax25_subr.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.76/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -95,7 +95,7 @@
 
 					if (ax25->sk != NULL) {
 						skbn->sk = ax25->sk;
-						ax25->sk->rmem_alloc += skbn->truesize;
+						atomic_add(skbn->truesize, &ax25->sk->rmem_alloc);
 					}
 
 					/* get first fragment from queue */

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