Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287003
b: refs/heads/master
c: 34b76fc
h: refs/heads/master
i:
  287001: 3224e49
  286999: c293acc
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent b2d1eaf commit 5271af4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f482fc88ac47662228d6b1f05759797c8936a30
refs/heads/master: 34b76fcaee574017862ea3fa0efdcd77a9d0e57d
5 changes: 3 additions & 2 deletions trunk/drivers/usb/serial/cp210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ static void cp210x_set_termios(struct tty_struct *tty,
struct usb_serial_port *port, struct ktermios *old_termios)
{
unsigned int cflag, old_cflag;
unsigned int baud = 0, bits;
u32 baud;
unsigned int bits;
unsigned int modem_ctl[4];

dbg("%s - port %d", __func__, port->number);
Expand All @@ -596,7 +597,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
if (baud != tty_termios_baud_rate(old_termios) && baud != 0) {
dbg("%s - Setting baud rate to %d baud", __func__,
baud);
if (cp210x_set_config(port, CP210X_SET_BAUDRATE, &baud, 4)) {
if (cp210x_set_config(port, CP210X_SET_BAUDRATE, &baud, sizeof(baud))) {
dbg("Baud rate requested not supported by device");
baud = tty_termios_baud_rate(old_termios);
}
Expand Down

0 comments on commit 5271af4

Please sign in to comment.