A small patch?

H.J. Lu (hjl@lucon.org)
Mon, 2 Jun 1997 13:07:11 -0700 (PDT)


Hi,

I just took another look at the code. Does this patch for
__add_wait_queue () look ok?

Thanks.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Index: include/linux/sched.h
===================================================================
RCS file: /home/work/cvs/linux/linux/include/linux/sched.h,v
retrieving revision 1.1.1.12
diff -u -r1.1.1.12 sched.h
--- sched.h	1997/05/24 01:39:23	1.1.1.12
+++ sched.h	1997/06/02 20:02:49
@@ -505,6 +505,8 @@
 
 	if (head)
 		next = head;
+	if (!next)
+		next = wait;
 	*p = wait;
 	wait->next = next;
 }