uchcom: reject parity and double stop bits as unsupported

Reviewed by:	hselasky
MFC after:	2 weeks
This commit is contained in:
avg 2018-05-21 21:00:13 +00:00
parent d1650aa51e
commit ae0d438d19

View File

@ -689,6 +689,10 @@ uchcom_pre_param(struct ucom_softc *ucom, struct termios *t)
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);