mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-02 07:13:31 +01:00
Char: mxser_new, fix recursive locking
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]>
This commit is contained in:
1 parent
3d124cbba3
commit
67d2bc58af
1 file changed
+7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user