[Prev][Next][Index]

Linux-1.3.67 - codename "Greased Weasel got Alzheimers"




---------- Forwarded message ----------
Date: Tue, 20 Feb 1996 16:22:17 +0200 (EET)
From: Linus Torvalds <torvalds@cs.helsinki.fi>
To: linux-kernel@vger.rutgers.edu, linux-alpha@vger.rutgers.edu
Subject: Re: Linux-1.3.67 - codename "Greased Weasel got Alzheimers"

Uhhuh..

 I forgot to mention an important fact in the 1.3.67 announcement. In order
to get a fully working kernel, you have to follow the steps below

 - Walk around your computer widdershins 3 times, chanting "Linus is
   overworked, and he makes lousy patches, but we love him anyway". Get
   your spuouse to do this too for extra effect.  Children are optional.
 - Apply the patch included in this mail
 - Call your system "Super-67", and don't forget to unapply the patch
   before you later applying the official 1.3.68 patch.
 - reboot

We apologize for the inconvenience, but we'd still like yout to test out
this kernel. 

The new Linux anthem will be "He's an idiot, but he's ok", as performed by
Monthy Python. You'd better start practicing.

		Linus
diff -u --recursive v1.3.67/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
--- v1.3.67/linux/net/ipv4/tcp.c	Tue Feb 20 14:37:30 1996
+++ linux/net/ipv4/tcp.c	Tue Feb 20 15:40:04 1996
@@ -480,7 +480,6 @@
 
 	while ((skb = skb_dequeue(&sk->receive_queue)) != NULL) 
 	{
-		skb->sk->dead=1;
 		tcp_close(skb->sk, 0);
 		kfree_skb(skb, FREE_READ);
 	}
@@ -1817,6 +1816,7 @@
 		tcp_set_state(sk, TCP_CLOSE);
 		tcp_close_pending(sk);
 		release_sock(sk);
+		sk->dead = 1;
 		return;
 	}
 	
@@ -1873,9 +1873,9 @@
 	 * This will destroy it. The timers will take care of actually
 	 * free'ing up the memory.
 	 */
-	sk->dead = 1;
 	tcp_cache_zap();	/* Kill the cache again. */
 	release_sock(sk);
+	sk->dead = 1;
 }