ChangeSet 1.2041, 2005/02/03 01:37:12-08:00, [EMAIL PROTECTED]

[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 <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/serial/ftdi_sio.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c     2005-02-03 08:45:33 -08:00
+++ b/drivers/usb/serial/ftdi_sio.c     2005-02-03 08:45:33 -08:00
@@ -1140,7 +1140,7 @@
                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;
 



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to