[PARPORT] Re: More parport troubles


Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 18 Apr 1998 23:38:11 +0100 (BST)


On 18 Apr 1998, Andreas Muck wrote:

> I just compiled 2.1.97 and tried to reproduce the Oops, but it locks
> up the kernel completely now. I can't even reboot using SysRq and I
> get no oops either.

Here is an untested patch. I think what was happening was that
disable_irq was being passed a negative parameter, due to lp being bogusly
woken up.

I'm compiling now.

Tim.
*/

--- /big/linux-2.1.97/drivers/misc/parport_procfs.c Thu Apr 9 01:27:12 1998
+++ linux/drivers/misc/parport_procfs.c Sat Apr 18 23:30:23 1998
@@ -100,10 +100,6 @@
 out_ok:
         pp->irq = newirq;
 
- if (oldirq != PARPORT_IRQ_NONE && newirq == PARPORT_IRQ_NONE &&
- cad && cad->irq_func)
- cad->irq_func(pp->irq, cad->private, NULL);
-
 out:
         return retval;
 }

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