2.4.36-stable kernel tree
Revision | e354203e83317bdcb7186a920982f992f468ad02 (tree) |
---|---|
Time | 2008-09-07 18:29:27 |
Author | Willy Tarreau <w@1wt....> |
Commiter | Willy Tarreau |
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>
@@ -1157,7 +1157,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev) | ||
1157 | 1157 | int avail; |
1158 | 1158 | dma_addr_t mapping; |
1159 | 1159 | u32 addr64; |
1160 | - u16 mss; | |
1160 | + u16 mss = 0; | |
1161 | 1161 | u8 ctrl; |
1162 | 1162 | |
1163 | 1163 | spin_lock_irqsave(&sky2->tx_lock, flags); |