[eepro100] Re: Kernel panic with RedHat 2.2.16-3 and eepro100 v1.13

Emil Sit sit@cisco.com
Thu, 14 Jun 2001 07:14:37 -0400


> This looks to be the printk at line 1031, but I can't see why any of

Oops, I misread the objdump or something. The attached patch seems
to fix the problem. Thanks to Jonathan Lemon.

--- eepro100.c.old      Wed Jun 13 14:10:40 2001
+++ eepro100.c  Wed Jun 13 14:12:27 2001
@@ -1040,8 +1040,9 @@
                   dev->name, sp->cur_rx);
 
        for (i = 0; i < RX_RING_SIZE; i++)
-               printk(KERN_DEBUG "  Rx ring entry %d  %8.8x.\n",
-                          i, (int)sp->rx_ringp[i]->status);
+               if (sp->rx_ringp[i] != NULL)
+                       printk(KERN_DEBUG "  Rx ring entry %d  %8.8x.\n",
+                                  i, (int)sp->rx_ringp[i]->status);
 
        for (i = 0; i < 16; i++) {
                if (i == 6) i = 21;

-- 
Emil Sit