Commit c4e6dcfa00dab9b10e75bba835393b81f256310b

Authored by Axel Lin
Committed by Greg Kroah-Hartman
1 parent 30a22c215a

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>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

drivers/tty/serial/sprd_serial.c
... ... @@ -293,8 +293,10 @@
293 293  
294 294 ims = serial_in(port, SPRD_IMSR);
295 295  
296   - if (!ims)
  296 + if (!ims) {
  297 + spin_unlock(&port->lock);
297 298 return IRQ_NONE;
  299 + }
298 300  
299 301 serial_out(port, SPRD_ICLR, ~0);
300 302