Re: [IRQ] Buggy driver makes __setup_irq segfault

From: Thomas Gleixner
Date: Tue Jun 09 2015 - 09:17:22 EST


On Tue, 9 Jun 2015, Mason wrote:
> I'm a noob, so I suppose this behavior is expected, but I'm reporting it,
> just in case. (I tested with 3.14.41)
>
> Consider this buggy driver, calling request_irq() multiple times,
> and not calling free_irq in the cleanup routine.

Not freeing things in the module exit code will make stuff explode,
not only interrupts. So yes, it's expected behaviour.

Thanks,

tglx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/