mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] Char: isicom, fix locking in isr
2 spin_unlocks are omitted in the interrupt handler. Put them there to fix up deadlocking on UP. Signed-off-by: Jiri Slaby <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
02d3fca092
commit
174f130767
1 changed files with 2 additions and 0 deletions
|
|
@ -564,6 +564,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id)
|
|||
port = card->ports + channel;
|
||||
if (!(port->flags & ASYNC_INITIALIZED)) {
|
||||
outw(0x0000, base+0x04); /* enable interrupts */
|
||||
spin_unlock(&card->card_lock);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
|
@ -678,6 +679,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id)
|
|||
tty_flip_buffer_push(tty);
|
||||
}
|
||||
outw(0x0000, base+0x04); /* enable interrupts */
|
||||
spin_unlock(&card->card_lock);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue