提交 67d2bc58 编写于 作者: J Jan Yenya Kasprzak 提交者: Linus Torvalds

Char: mxser_new, fix recursive locking

Signed-off-by: NJan "Yenya" Kasprzak <kas@fi.muni.cz>
Acked-by: NJiri Slaby <jirislaby@gmail.com>
Acked-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3d124cbb
......@@ -2230,7 +2230,14 @@ static void mxser_receive_chars(struct mxser_port *port, int *status)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册