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

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

diff -u --recursive --new-file v2.1.14/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -89,14 +89,11 @@
 						return 1;
 					}
 
-					skbn->free = 1;
 					skbn->arp  = 1;
 					skbn->dev  = ax25->device;
 
-					if (ax25->sk != NULL) {
-						skbn->sk = ax25->sk;
-						atomic_add(skbn->truesize, &ax25->sk->rmem_alloc);
-					}
+					if (ax25->sk != NULL)
+						skb_set_owner_r(skbn, ax25->sk);
 
 					skb_reserve(skbn, AX25_MAX_HEADER_LEN);
 

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