Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Char: mxser_new, fix recursive locking

parent 3d124cbb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)