projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d124cb
)
Char: mxser_new, fix recursive locking
author
Jan Yenya Kasprzak
<
[email protected]
>
Mon, 23 Apr 2007 21:41:02 +0000
(14:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 24 Apr 2007 15:23:07 +0000
(08:23 -0700)
Signed-off-by: Jan "Yenya" Kasprzak <
[email protected]
>
Acked-by: Jiri Slaby <
[email protected]
>
Acked-by: Alan Cox <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/mxser_new.c
patch
|
blob
|
history
diff --git
a/drivers/char/mxser_new.c
b/drivers/char/mxser_new.c
index 9af07e4999d5f0cac406a3f2200adad82b27dcca..59e0aac19c2fc7cf5a34166b616fce4d9cc85868 100644
(file)
--- a/
drivers/char/mxser_new.c
+++ b/
drivers/char/mxser_new.c
@@
-2230,7
+2230,14
@@
end_intr:
port->mon_data.rxcnt += cnt;
port->mon_data.up_rxcnt += cnt;
+ /*
+ * We are called from an interrupt context with &port->slock
+ * being held. Drop it temporarily in order to prevent
+ * recursive locking.
+ */
+ spin_unlock(&port->slock);
tty_flip_buffer_push(tty);
+ spin_lock(&port->slock);
}
static void mxser_transmit_chars(struct mxser_port *port)