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

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

diff -urN linux-2.4.20/drivers/net/epic100.c linux-2.4.21/drivers/net/epic100.c
@@ -975,6 +975,13 @@
 	int entry, free_count;
 	u32 ctrl_word;
 	long flags;
+	
+	if(skb->len < ETH_ZLEN)
+	{
+		skb = skb_padto(skb, ETH_ZLEN);
+		if(skb == NULL)
+			return 0;
+	}
 
 	/* Caution: the write order is important here, set the field with the
 	   "ownership" bit last. */

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