• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: 提交

2.4.36-stable kernel tree


Commit MetaInfo

修订版e354203e83317bdcb7186a920982f992f468ad02 (tree)
时间2008-09-07 18:29:27
作者Willy Tarreau <w@1wt....>
CommiterWilly Tarreau

Log Message

sky2: fix uninitialized "mss" variable in sky2_xmit_frame()

This variable was initialized within the #if NETIF_F_TSO block
which is not used on kernel 2.4. This has probably caused a
bunch of unstability. This driver would need a new backport
anyway.

Signed-off-by: Willy Tarreau <w@1wt.eu>

更改概述

差异

--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1157,7 +1157,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev)
11571157 int avail;
11581158 dma_addr_t mapping;
11591159 u32 addr64;
1160- u16 mss;
1160+ u16 mss = 0;
11611161 u8 ctrl;
11621162
11631163 spin_lock_irqsave(&sky2->tx_lock, flags);
Show on old repository browser