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

Next file: linux/net/ax25/ax25_out.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.131/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -389,10 +389,9 @@
 		}
 
 		ax25 = make->protinfo.ax25;
-
+		skb_set_owner_r(skb, make);
 		skb_queue_head(&sk->receive_queue, skb);
 
-		skb->sk     = make;
 		make->state = TCP_ESTABLISHED;
 		make->pair  = sk;
 
@@ -473,6 +472,7 @@
 int ax25_kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
 {
 	skb->sk = NULL;		/* Initially we don't know who it's for */
+	skb->destructor = NULL;	/* Who initializes this, dammit?! */
 
 	if ((*skb->data & 0x0F) != 0) {
 		kfree_skb(skb);	/* Not a KISS data frame */

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