aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-02-14 05:54:39 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-02-14 05:54:39 +0000
commitb662bdc270eba1efaf4cbcc860fda69cb29c0815 (patch)
treee0371223ea76146bac1211521ec89ec84e7ece7c /sys/dev
parente9827c6d9354609d43508fe2cfb54f024f6527a8 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/uart/uart_tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index fd2e59e01596..ec1c6db7951b 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -225,7 +225,8 @@ uart_tty_param(struct tty *tp, struct termios *t)
: UART_PARITY_EVEN;
else
parity = UART_PARITY_NONE;
- UART_PARAM(sc, t->c_ospeed, databits, stopbits, parity);
+ if (UART_PARAM(sc, t->c_ospeed, databits, stopbits, parity) != 0)
+ return (EINVAL);
UART_SETSIG(sc, UART_SIG_DDTR | UART_SIG_DTR);
/* Set input flow control state. */
if (!sc->sc_hwiflow) {