⬢ DragonFlyBSD Kernel Audit
DF-5447 / fix.diff
← back to finding ↓ download raw
--- a/sys/bus/u4b/serial/uvscom.c
+++ b/sys/bus/u4b/serial/uvscom.c
@@ -514,20 +514,21 @@ uvscom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff)
 static int
 uvscom_pre_param(struct ucom_softc *ucom, struct termios *t)
 {
 	switch (t->c_ospeed) {
-		case B150:
-		case B300:
-		case B600:
-		case B1200:
-		case B2400:
-		case B4800:
-		case B9600:
-		case B19200:
-		case B38400:
-		case B57600:
-		case B115200:
-		default:
-		return (EINVAL);
+	case B150:
+	case B300:
+	case B600:
+	case B1200:
+	case B2400:
+	case B4800:
+	case B9600:
+	case B19200:
+	case B38400:
+	case B57600:
+	case B115200:
+		return (0);
+	default:
+		return (EINVAL);
 	}
 	return (0);
 }