Commit 67d2bc58 authored by Jan Yenya Kasprzak's avatar Jan Yenya Kasprzak Committed by Linus Torvalds

Char: mxser_new, fix recursive locking

Signed-off-by: default avatarJan "Yenya" Kasprzak <kas@fi.muni.cz>
Acked-by: default avatarJiri Slaby <jirislaby@gmail.com>
Acked-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment