mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
serial: sprd: Fix missing spin_unlock in sprd_handle_irq()
Fix return from sprd_handle_irq() with spin_lock held. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
30a22c215a
commit
c4e6dcfa00
@ -293,8 +293,10 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id)
|
||||
|
||||
ims = serial_in(port, SPRD_IMSR);
|
||||
|
||||
if (!ims)
|
||||
if (!ims) {
|
||||
spin_unlock(&port->lock);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
serial_out(port, SPRD_ICLR, ~0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user