lkml.org 
[lkml]   [2003]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.5] Fix via-rhine using skb_padto
This patch has already made it into 2.4.21pre3-ac4. Please apply.

--- 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) &&
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.038 / U:2.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site