Unverified Commit eb29929f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 195747d8 9c8ada7d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -287,11 +287,13 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)
		/*
		 * Turn off DTR and RTS early.
		 */
		if (uport && uart_console(uport) && tty)
		if (uport) {
			if (uart_console(uport) && tty)
				uport->cons->cflag = tty->termios.c_cflag;

			if (!tty || C_HUPCL(tty))
				uart_port_dtr_rts(uport, 0);
		}

		uart_port_shutdown(port);
	}