[PARPORT] Re: parport 2.1.76 patches, lots of Trying to free free IRQ5


Philip Blundell (Philip.Blundell@pobox.com)
Mon, 29 Dec 1997 20:44:52 +0000


>I get thousands of "Trying to free free IRQ5" messages in my system log now
>that I've upgraded to 2.1.76 with your patch (which didn't apply cleanly,
>possibly due to mangling by the mail archiver I used; I may have mis-
>applied it). Usually I get ~2500 of them before things settle down (or the
>errant module gets autocleaned?)...

Sorry; this bug has been fixed once but I accidentally put it back in. Here's
a patch.

p.

diff -u -r1.9 parport_pc.c
--- parport_pc.c 1997/12/22 22:03:34 1.9
+++ parport_pc.c 1997/12/29 19:44:10
@@ -165,7 +165,7 @@
 void parport_pc_release_resources(struct parport *p)
 {
        if (p->irq != PARPORT_IRQ_NONE)
- free_irq(p->irq, p);
+ free_irq(p->irq, NULL);
        release_region(p->base, p->size);
        if (p->modes & PARPORT_MODE_PCECR)
                release_region(p->base+0x400, 3);
@@ -175,7 +175,7 @@
 {
        /* FIXME check that resources are free */
        if (p->irq != PARPORT_IRQ_NONE)
- request_irq(p->irq, parport_pc_null_intr_func, 0, p->name, p);
+ request_irq(p->irq, parport_pc_null_intr_func, 0, p->name, NULL);
        request_region(p->base, p->size, p->name);
        if (p->modes & PARPORT_MODE_PCECR)
                request_region(p->base+0x400, 3, p->name);

-- 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