mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
hvc_console: Call free_irq() only if request_irq() was successful
Only call free_irq if we marked the request_irq has having succeeded instead of whenever the the sub-driver identified the interrupt to use. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
This commit is contained in:
parent
9fef3d2d15
commit
c21f7a527f
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ int notifier_add_irq(struct hvc_struct *hp, int irq)
|
|||
|
||||
void notifier_del_irq(struct hvc_struct *hp, int irq)
|
||||
{
|
||||
if (!irq)
|
||||
if (!hp->irq_requested)
|
||||
return;
|
||||
free_irq(irq, hp);
|
||||
hp->irq_requested = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue