diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/linux/openslug-kernel-2.6.11.2/usbnet.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/linux/openslug-kernel-2.6.11.2/usbnet.patch')
-rw-r--r-- | packages/linux/openslug-kernel-2.6.11.2/usbnet.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/linux/openslug-kernel-2.6.11.2/usbnet.patch b/packages/linux/openslug-kernel-2.6.11.2/usbnet.patch index e69de29bb2..1b3cf3fcb8 100644 --- a/packages/linux/openslug-kernel-2.6.11.2/usbnet.patch +++ b/packages/linux/openslug-kernel-2.6.11.2/usbnet.patch @@ -0,0 +1,17 @@ +--- linux-2.6.11/drivers/usb/net/usbnet.c_orig 2005-03-03 13:50:54.053237416 -0500 ++++ linux-2.6.11/drivers/usb/net/usbnet.c 2005-03-03 13:53:19.415139048 -0500 +@@ -2404,12 +2404,13 @@ + #endif + size = (sizeof (struct ethhdr) + dev->net->mtu); + +- if ((skb = alloc_skb (size, flags)) == NULL) { ++ if ((skb = alloc_skb (size + NET_IP_ALIGN, flags)) == NULL) { + devdbg (dev, "no rx skb"); + defer_kevent (dev, EVENT_RX_MEMORY); + usb_free_urb (urb); + return; + } ++ skb_reserve (skb, NET_IP_ALIGN); + + entry = (struct skb_data *) skb->cb; + entry->urb = urb; |