svn commit: r335623 - stable/10/sys/dev/usb/serial
Andriy Gapon
avg at FreeBSD.org
Mon Jun 25 08:53:31 UTC 2018
Author: avg
Date: Mon Jun 25 08:53:30 2018
New Revision: 335623
URL: https://svnweb.freebsd.org/changeset/base/335623
Log:
MFC r334000: uchcom: reject parity and double stop bits as unsupported
Modified:
stable/10/sys/dev/usb/serial/uchcom.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/usb/serial/uchcom.c
==============================================================================
--- stable/10/sys/dev/usb/serial/uchcom.c Mon Jun 25 08:52:48 2018 (r335622)
+++ stable/10/sys/dev/usb/serial/uchcom.c Mon Jun 25 08:53:30 2018 (r335623)
@@ -686,6 +686,10 @@ uchcom_pre_param(struct ucom_softc *ucom, struct termi
default:
return (EIO);
}
+ if ((t->c_cflag & CSTOPB) != 0)
+ return (EIO);
+ if ((t->c_cflag & PARENB) != 0)
+ return (EIO);
if (uchcom_calc_divider_settings(&dv, t->c_ospeed)) {
return (EIO);
More information about the svn-src-stable
mailing list