Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279
b: refs/heads/master
c: 6fdd8e8
h: refs/heads/master
i:
  277: 2f9035e
  275: 854746d
  271: 7f071f9
v: v3
  • Loading branch information
Flavio Leitner authored and Greg K-H committed Apr 19, 2005
1 parent adc1c76 commit 110252e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8835f6657316162a8937d3f26ccd8f5886ba3845
refs/heads/master: 6fdd8e8e33730a2abc886113bd0b6c4343f63cc9
6 changes: 6 additions & 0 deletions trunk/drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ static int pl2303_tiocmset (struct usb_serial_port *port, struct file *file,
unsigned long flags;
u8 control;

if (!usb_get_intfdata(port->serial->interface))
return -ENODEV;

spin_lock_irqsave (&priv->lock, flags);
if (set & TIOCM_RTS)
priv->line_control |= CONTROL_RTS;
Expand All @@ -702,6 +705,9 @@ static int pl2303_tiocmget (struct usb_serial_port *port, struct file *file)

dbg("%s (%d)", __FUNCTION__, port->number);

if (!usb_get_intfdata(port->serial->interface))
return -ENODEV;

spin_lock_irqsave (&priv->lock, flags);
mcr = priv->line_control;
status = priv->line_status;
Expand Down

0 comments on commit 110252e

Please sign in to comment.