svn commit: r334000 - head/sys/dev/usb/serial
Andriy Gapon
avg at FreeBSD.org
Mon May 21 21:00:14 UTC 2018
Author: avg
Date: Mon May 21 21:00:13 2018
New Revision: 334000
URL: https://svnweb.freebsd.org/changeset/base/334000
Log:
uchcom: reject parity and double stop bits as unsupported
Reviewed by: hselasky
MFC after: 2 weeks
Modified:
head/sys/dev/usb/serial/uchcom.c
Modified: head/sys/dev/usb/serial/uchcom.c
==============================================================================
--- head/sys/dev/usb/serial/uchcom.c Mon May 21 20:59:15 2018 (r333999)
+++ head/sys/dev/usb/serial/uchcom.c Mon May 21 21:00:13 2018 (r334000)
@@ -689,6 +689,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-head
mailing list