]> git.neil.brown.name Git - history.git/commitdiff
Linux 2.2.24-rc4 2.2.24-rc4
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 23 Nov 2007 20:24:39 +0000 (15:24 -0500)
committerAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 23 Nov 2007 20:24:39 +0000 (15:24 -0500)
o   Fix ethernet as modules problems                (Alan Cox)
o   Fix 8139too and rtl8139 padding                 (Alan Cox)

Makefile
drivers/net/8139too.c
drivers/net/rtl8139.c
net/netsyms.c

index a5fa1980fc790e3e343a4c2302a2a3bd55f70ac3..cfcd09d7189c285e1ef61ae22f59e322fe599a51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 2
 SUBLEVEL = 24
-EXTRAVERSION = -rc3
+EXTRAVERSION = -rc4
 
 ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
 
index 1193178119be91797d2cdd2388274cab3642aaf7..f894b32e276dae096fe5cc555e38dc4fe454769e 100644 (file)
@@ -1840,6 +1840,14 @@ static int rtl8139_start_xmit (struct sk_buff *skb, struct device *dev)
                        return 0;
                }
        }
+       
+       if(skb->len < ETH_ZLEN)
+       {
+               skb = skb_padto(skb, ETH_ZLEN);
+               if(skb == NULL)
+                       return 0;
+       }
+       
        mb();
 
        /* Calculate the next Tx descriptor entry. */
index 5b0db5de897e1af019c964945308b6c232bdcf5a..f7c5bdf8c12273f73d62f84ddefec66f2de738e9 100644 (file)
@@ -970,6 +970,16 @@ rtl8129_start_xmit(struct sk_buff *skb, struct device *dev)
                        rtl8129_tx_timeout(dev);
                return 1;
        }
+       
+       if(skb->len < ETH_ZLEN)
+       {
+               skb = skb_padto(skb, ETH_ZLEN);
+               if(skb == NULL)
+               {
+                       clear_bit(0, (void *)&dev->tbusy);
+                       return 0;
+               }
+       }
 
        /* Calculate the next Tx descriptor entry. */
        entry = tp->cur_tx % NUM_TX_DESC;
index 58150e1a8564c909de59c83152120e122312abca..cbed414d826610294d5ac0ebacb26d4af4f23a99 100644 (file)
@@ -489,6 +489,7 @@ EXPORT_SYMBOL(alloc_skb);
 EXPORT_SYMBOL(__kfree_skb);
 EXPORT_SYMBOL(skb_clone);
 EXPORT_SYMBOL(skb_copy);
+EXPORT_SYMBOL(skb_pad);
 EXPORT_SYMBOL(netif_rx);
 EXPORT_SYMBOL(dev_add_pack);
 EXPORT_SYMBOL(dev_remove_pack);