patch-2.1.109 linux/drivers/misc/parport_share.c

Next file: linux/drivers/net/8390.h
Previous file: linux/drivers/misc/parport_pc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/drivers/misc/parport_share.c linux/drivers/misc/parport_share.c
@@ -360,9 +360,10 @@
 			/* First add ourselves to the end of the wait list. */
 			dev->waitnext = NULL;
 			dev->waitprev = port->waittail;
-			if (port->waittail)
+			if (port->waittail) {
 				port->waittail->waitnext = dev;
-			else
+				port->waittail = dev;
+			} else
 				port->waithead = port->waittail = dev;
 		}
 		spin_unlock_irqrestore (&port->lock, flags);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov