Commit 291fc0eb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix up locking bugs in kl5kusb105.c that sparse found

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 9e3e3055
......@@ -773,9 +773,11 @@ static void klsi_105_set_termios (struct usb_serial_port *port,
switch (cflag & CSIZE) {
case CS5:
dbg("%s - 5 bits/byte not supported", __FUNCTION__);
spin_unlock_irqrestore (&priv->lock, flags);
return ;
case CS6:
dbg("%s - 6 bits/byte not supported", __FUNCTION__);
spin_unlock_irqrestore (&priv->lock, flags);
return ;
case CS7:
priv->cfg.databits = kl5kusb105a_dtb_7;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment