OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a22c2
)
serial: sprd: Fix missing spin_unlock in sprd_handle_irq()
author
Axel Lin
<axel.lin@ingics.com>
Mon, 16 Feb 2015 14:39:04 +0000
(22:39 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:39:55 +0000
(
03:39
+0100)
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>
drivers/tty/serial/sprd_serial.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sprd_serial.c
b/drivers/tty/serial/sprd_serial.c
index
594b633
..
bca975f
100644
(file)
--- a/
drivers/tty/serial/sprd_serial.c
+++ b/
drivers/tty/serial/sprd_serial.c
@@
-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);