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

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

diff -u --recursive --new-file v2.1.33/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -325,7 +325,7 @@
 			case AX25_P_TEXT:
 				/* Now find a suitable dgram socket */
 				if ((sk = ax25_find_socket(&dest, &src, SOCK_DGRAM)) != NULL) {
-					if (sk->rmem_alloc >= sk->rcvbuf) {
+					if (atomic_read(&sk->rmem_alloc) >= sk->rcvbuf) {
 						kfree_skb(skb, FREE_READ);
 					} else {
 						/*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov