Commit c633526d authored by Rogier Wolff's avatar Rogier Wolff Committed by Greg Kroah-Hartman

[PATCH] Re: Bug when using custom baud rates....

 When using custom baud rates, the code does:


        if ((new_serial.baud_base != priv->baud_base) ||
             (new_serial.baud_base < 9600))
                 return -EINVAL;

 Which translates to english as:

 	If you changed the baud-base, OR the new one is
 	invalid, return invalid.

 but it should be:

 	If you changed the baud-base, OR the new one is
 	invalid, return invalid.


From: Rogier Wolff <R.E.Wolff@harddisk-recovery.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 427b96f1
......@@ -1140,7 +1140,7 @@ static int set_serial_info(struct usb_serial_port * port, struct serial_struct _
goto check_and_exit;
}
if ((new_serial.baud_base != priv->baud_base) ||
if ((new_serial.baud_base != priv->baud_base) &&
(new_serial.baud_base < 9600))
return -EINVAL;
......
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