patch-2.4.21 linux-2.4.21/drivers/net/depca.c

Next file: linux-2.4.21/drivers/net/dgrs.c
Previous file: linux-2.4.21/drivers/net/declance.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/net/depca.c linux-2.4.21/drivers/net/depca.c
@@ -862,6 +862,13 @@
 	if (skb->len < 1)
 		goto out;
 
+	if(skb->len < ETH_ZLEN)
+	{
+		skb = skb_padto(skb, ETH_ZLEN);
+		if(skb == NULL)
+			goto out;
+	}
+	
 	netif_stop_queue(dev);
 
 	if (TX_BUFFS_AVAIL) {	/* Fill in a Tx ring entry */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)