RE: [PARPORT] lp locks with three devs on parport


Tim Waugh (tim@cyberelk.demon.co.uk)
Mon, 13 Jul 1998 19:36:57 +0100 (BST)


Hi guys,

Here's the patch that I sent to Linus. Thanks Jochen!

Tim.
*/

--- linux/drivers/misc/parport_share.c.orig Mon Jun 8 13:26:34 1998
+++ linux/drivers/misc/parport_share.c Mon Jul 13 19:33:51 1998
@@ -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);

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:57 EST