[PARPORT] oops


Philip Blundell (Philip.Blundell@pobox.com)
Mon, 29 Dec 1997 19:10:35 +0000


I just noticed a mistake in the new parport_share code. If you try it, you
will probably need to make this change for it to work.

int parport_claim_or_block(struct pardevice *dev)
{
        int r;
        dev->time = jiffies;
        atomic_inc(&dev->port->waiters);
        r = parport_claim(dev);
- if (r == -EAGAIN)
+ if (r == -EAGAIN) {
                sleep_on(&dev->wait_q);
+ r = parport_claim(dev); /* never fails */
+ }
        atomic_dec(&dev->port->waiters);
        return r;
}

(No, it's not a proper patch; you'll have to do it by hand).

p.

-- 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:15 EST