svn commit: r335622 - stable/11/sys/dev/usb/serial

Andriy Gapon avg at FreeBSD.org
Mon Jun 25 08:52:49 UTC 2018


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);


More information about the svn-src-stable-11 mailing list