[1034] in linux-net channel archive

home help back first fref pref prev next nref lref last post

patch for 1.3.22: slip init bombed

daemon@ATHENA.MIT.EDU (Heiko Eissfeldt)
Sun Sep 3 21:21:56 1995

From: heiko@colossus.escape.de (Heiko Eissfeldt)
To: iialan@iifeak.swan.ac.uk
Date: Sun, 3 Sep 1995 16:51:37 +0200 (MET DST)
Cc: linux-kernel@vger.rutgers.edu, linux-net@vger.rutgers.edu,
        Linus.Torvalds@helsinki.fi (Linus Torvalds)

Hi,

Stock 1.3.22 bombed reproducible during boot when init'ing the slip devices.

--- dev.c.org	Sun Sep  3 16:36:30 1995
+++ dev.c	Sun Sep  3 16:44:20 1995
@@ -251,6 +251,9 @@
 {
 	int ct=0;

+	if (dev->flags == 0)
+		return(0);
+
 	/*
 	 *	Call the device specific close. This cannot fail.
 	 *	Only if device is UP

This patch worked for me.

Heiko
-- 
Heiko Eissfeldt (heiko@colossus.escape.de)	No (french) nuclear tests!


home help back first fref pref prev next nref lref last post