Author: avg
Date: Mon Jun 25 08:52:48 2018
New Revision: 335622
URL: https://svnweb.freebsd.org/changeset/base/335622
Log:
MFC r334000: uchcom: reject parity and double stop bits as unsupported
Modified:
stable/11/sys/dev/usb/serial/uchcom.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/usb/serial/uchcom.c
==============================================================================
--- stable/11/sys/dev/usb/serial/uchcom.c Mon Jun 25 08:50:46 2018
(r335621)
+++ stable/11/sys/dev/usb/serial/uchcom.c Mon Jun 25 08:52:48 2018
(r335622)
@@ -687,6 +687,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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"