Ticket #2628: linux-2.6.33.2-e1000e_fix_segfault-1.patch

File linux-2.6.33.2-e1000e_fix_segfault-1.patch, 869 bytes (added by willimm, 15 years ago)

Fixes a issue in the e1000e network card driver that causes a kernel panic. Required for people that use that network card, like our own Bruce Dubbs.

  • drivers/net/e1000e/netdev.c

    Submitted by: William Immendorf <will.immendorf@gmail.com>
    Date: 16/04/10
    Origional Package Version: 2.6.33.2
    Upstream Status: From Upstream
    Origin: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dac876193cd79ced36d0462749ea47c05844fb49
    Description: Fixes a segfault in the e1000e driver that causes init to segfault when booting up. This patch is espically useful for people that have a e1000e card installed in their system.
    
    diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
    index cfd09ce..73d43c5 100644
    a b static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)  
    661661                                i = 0;
    662662                }
    663663
     664                if (i == tx_ring->next_to_use)
     665                        break;
    664666                eop = tx_ring->buffer_info[i].next_to_watch;
    665667                eop_desc = E1000_TX_DESC(*tx_ring, eop);
    666668        }