public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.5] Fix via-rhine using skb_padto
@ 2003-01-14 12:45 Roger Luethi
  0 siblings, 0 replies; only message in thread
From: Roger Luethi @ 2003-01-14 12:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Alan Cox, Jeff Garzik

[-- Attachment #1: Type: text/plain, Size: 67 bytes --]

This patch has already made it into 2.4.21pre3-ac4. Please apply.


[-- Attachment #2: via-rhine.c-2.5.58-skb_padto.diff --]
[-- Type: text/plain, Size: 419 bytes --]

--- linux-2.5.58/drivers/net/via-rhine.c.org	Tue Jan 14 00:41:30 2003
+++ linux-2.5.58/drivers/net/via-rhine.c	Tue Jan 14 13:24:14 2003
@@ -1239,6 +1239,12 @@
 	/* Calculate the next Tx descriptor entry. */
 	entry = np->cur_tx % TX_RING_SIZE;
 
+	if (skb->len < ETH_ZLEN) {
+		skb = skb_padto(skb, ETH_ZLEN);
+		if(skb == NULL)
+			return 0;
+	}
+
 	np->tx_skbuff[entry] = skb;
 
 	if ((np->drv_flags & ReqTxAlign) &&

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-14 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-14 12:45 [PATCH][2.5] Fix via-rhine using skb_padto Roger Luethi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox