Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93297
b: refs/heads/master
c: 9b0f258
h: refs/heads/master
i:
  93295: baf607d
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Apr 25, 2008
1 parent 7a3b0b3 commit 3387a12
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2097890c43a8fe90763f31b0010fd6963f5512c8
refs/heads/master: 9b0f2582d57d4c9081307c86e11afc9169de7d3e
4 changes: 2 additions & 2 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,8 @@ static int update_mctrl(struct usb_serial_port *port, unsigned int set, unsigned
}

buf = kmalloc(1, GFP_NOIO);
if (!buf) {
if (!buf)
return -ENOMEM;
}

clear &= ~set; /* 'set' takes precedence over 'clear' */
urb_value = 0;
Expand Down Expand Up @@ -568,6 +567,7 @@ static int update_mctrl(struct usb_serial_port *port, unsigned int set, unsigned
(clear & TIOCM_DTR) ? "LOW" : "unchanged",
(set & TIOCM_RTS) ? "HIGH" :
(clear & TIOCM_RTS) ? "LOW" : "unchanged");
/* FIXME: locking on last_dtr_rts */
priv->last_dtr_rts = (priv->last_dtr_rts & ~clear) | set;
}
return rv;
Expand Down

0 comments on commit 3387a12

Please sign in to comment.