git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cx82310_eth: use skb_cow_head() to deal with cloned skbs
[pandora-kernel.git]
/
drivers
/
net
/
usb
/
cx82310_eth.c
diff --git
a/drivers/net/usb/cx82310_eth.c
b/drivers/net/usb/cx82310_eth.c
index
8969f12
..
1c290dc
100644
(file)
--- a/
drivers/net/usb/cx82310_eth.c
+++ b/
drivers/net/usb/cx82310_eth.c
@@
-277,12
+277,9
@@
static struct sk_buff *cx82310_tx_fixup(struct usbnet *dev, struct sk_buff *skb,
{
int len = skb->len;
- if (skb_headroom(skb) < 2) {
- struct sk_buff *skb2 = skb_copy_expand(skb, 2, 0, flags);
+ if (skb_cow_head(skb, 2)) {
dev_kfree_skb_any(skb);
- skb = skb2;
- if (!skb)
- return NULL;
+ return NULL;
}
skb_push(skb, 2);