Re: 1.3.22 Oops'es with CSLIP

scott snyder (SNYDER@D0SB10.FNAL.GOV)
Sun, 3 Sep 1995 3:37:09 -0500 (CDT)


hi -

The appended patch to drivers/net/slip.c fixed the 1.3.22 slip bootup
problem for me. The problem was that unregister_netdev() was being
called without the skbuff's for the device having been set up as a
circular list. This does seem like kind of a klugy fix; hopefully,
someone who knows the networking code better will do this right.

sss

--- slip.c-orig Sat Sep 2 15:17:35 1995
+++ slip.c Sat Sep 2 15:21:41 1995
@@ -1169,6 +1169,12 @@
#ifndef MODULE
/* printk("SLIP: Unregistering bootstrap device "
"'slip_proto' - slip OK\n");*/
+ { /* sss */
+ int i;
+ for (i=0; i<DEV_NUMBUFFS; i++)
+ dummy->buffs[i].next = dummy->buffs[i].prev =
+ &dummy->buffs[i];
+ }
unregister_netdev(dummy);
#endif
return status;