patch-2.1.15 linux/drivers/net/bpqether.c

Next file: linux/drivers/net/de4x5.c
Previous file: linux/drivers/net/arcnet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/drivers/net/bpqether.c linux/drivers/net/bpqether.c
@@ -294,17 +294,14 @@
 			return -ENOMEM;
 		}
 
-		newskb->free = 1;
 		newskb->arp  = 1;
-		newskb->sk   = skb->sk;
+		if (skb->sk)
+			skb_set_owner_w(newskb, skb->sk);
 
 		skb_reserve(newskb, AX25_BPQ_HEADER_LEN);
 		memcpy(skb_put(newskb, size), skb->data, size);
 		dev_kfree_skb(skb, FREE_WRITE);
 		skb = newskb;
-
-		if (skb->sk != NULL)
-			atomic_add(skb->truesize, &skb->sk->wmem_alloc);
 	}
 	
 	skb->protocol = htons(ETH_P_AX25);

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