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
- Lines: 20
- Date:
Thu Dec 12 16:51:09 1996
- Orig file:
v2.1.14/linux/drivers/net/bpqether.c
- Orig date:
Tue Nov 12 15:56:06 1996
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