clean error in arch/mips/pmc/cp7000/irq.c:request_irq
PATCH 1/1 clean error in arch/mips/pmc/cp7000/irq.c:request_irq
Hi,
i think this is more correct - On failing of shared irqs one should at least reenable interrupts and free the allocated buffer.
Apply before anyone copys this into his/her code ...
Index: arch/mips/pmc/cp7000/irq.c
===================================================================
RCS file: /cvs/linux/arch/mips/pmc/cp7000/irq.c,v
retrieving revision 1.1
mips/pmc/cp7000/irq.c +4 -1
@@ -327,8 +327,11 @@if ((old = *p) !=NULL ) {/* Can't share interrupts unless both agree to */ -if (!(old->flags & action->flags &SA_SHIRQ )) +if (!(old->flags & action->flags &SA_SHIRQ )) { +restore_flags (flags); +kfree (action);return -EBUSY ; + }/* add new interrupt at end of irq queue */ do { p = &old->next;
Signature · 2 lines
Florian Lohoff [email protected] +49-5201-669912 Why is it called "common sense" when nobody seems to have any?