Commit c4e6dcfa authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman

serial: sprd: Fix missing spin_unlock in sprd_handle_irq()

Fix return from sprd_handle_irq() with spin_lock held.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 30a22c21
...@@ -293,8 +293,10 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id) ...@@ -293,8 +293,10 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id)
ims = serial_in(port, SPRD_IMSR); ims = serial_in(port, SPRD_IMSR);
if (!ims) if (!ims) {
spin_unlock(&port->lock);
return IRQ_NONE; return IRQ_NONE;
}
serial_out(port, SPRD_ICLR, ~0); serial_out(port, SPRD_ICLR, ~0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment